How to use operators in elasticsearch percolator query?


(yatish gupta) #1

Hi have installed ES 1.0.1 and tried to check the percolator query with AND
operator.

Added a query to percolator:

curl -XPUT 'localhost:9200/testperc/.percolator/1' -d
'{"query":{"match":{"message" : "hero AND shine"}}}'

When tried to check for "hero" word that query is matching ideally it
should not happen.

curl -XGET 'localhost:9200/testperc/message/_percolate' -d '{"doc" :
{"message" : "hero"}}'
{"took":10,"_shards":{"total":5,"successful":5,"failed":0},"total":1,"matches":[{"_index":"testperc","_id":"1"}]}

Please help me how can i use the operators in percolator query?

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/3abd96e1-6abb-4411-915b-9c24a352ba23%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #2