vendredi 27 février 2015

Elasticsearch query for matching two parameters at the same time

I have to search two fields in a DB using elasticsearch where i should be getting total hits isequal to the sum of individual field search. I did it on port 9200 like this and its working. How to write a must match code for this.



http://localhost:9200/indexname/typename/_search?q=Both:Yes++Type:Comm


Where Both is one field and Comm is another.


Thank you


Aucun commentaire:

Enregistrer un commentaire