Hi
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":{
"combined_fields":{
"query":"' + criteria + '",
"fields":[
"SURNAMES",
"NAMES"
],
"operator":"and"
}
}
}
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.
Thanks.