Filter combined_fields result


I'm working on a people search website. I already have my databases indexed and it is currently possible to search for a person by fullname using combined_fields query like this.

         "query":"' + criteria + '",

It works fine, but i also have fields CITY and PROVINCE, so maybe the user wants to filter by those fields or maybe not.

Do i need to take the full result of the above query or is there a way to do this in the same query? considering that it can be a response of more than 1000 results.


You can use a bool query and add other criteria as should, filter or must clauses.

This does not answer my question.

So I did not understand your question. May be rephrase it with more examples?

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