Filter results with custom logic


(Marcelo Paix√£o Resende) #1

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.


(Jaspreet Singh) #2

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