Match_phrase_prefix acts erratically when there is a filter

Also posting the documents you indexed (or a minimal set of them) would help reproduce your issue.

In general I think the following issue might be relevant to your question: https://github.com/elastic/elasticsearch/issues/7485