Hi

As shown in the example below, if I search for the string "New York", how 
can avoid retrieving document that are not an exact match?


curl -XPUT 'localhost:9201/cities/.percolator/1' -d '{
    "query" : {
        "match" : {
            "body" : "New Jersey"
        }
    }
}'


# >> 
{"_index":"cities","_type":".percolator","_id":"1","_version":1,"created":true}


curl -XGET 'localhost:9201/cities/city/_percolate' -d '{
    "doc" : {
        "body" : "New York"
    }
}'


# >> 
{"took":4,"_shards":{"total":5,"successful":5,"failed":0},"total":1,"matches":[{"_index":"cities","_id":"1"}]}





-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/72c490fe-0b17-4bfd-82b9-3426dcf35c47%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to