Pharse Lwów

"Lwów" return from index words like "lokal" but Lwowie and find substantive case.

It's not clear what you are asking here, do you mind rewording the question?

I search phrase "Lwów" in polish analyzer

"match_phrase_prefix":{
"field_with_text":{
"query" => 'Lwów,
"analyzer" => 'polish"
}
}

search find word like lokal and Ledwos
how to remove it from search in index