Filter results with custom logic

I have multiple match_phrase clauses. Is there a way to access the matching phrases (the match_phrase results and which clauses matched) and their position for each document? I'm looking for a way to create a plugin or painless script to do that.

The highlights object will typically return you all the occurrences of matches and the fields they match in.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.