May be this? http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/query-dsl-match-query.html#_phrase
-- David Pilato | Technical Advocate | Elasticsearch.com @dadoonet | @elasticsearchfr Le 15 avril 2014 à 06:15:21, Louis-René Haché ([email protected]) a écrit: 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. -- 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/etPan.534cf669.6b8b4567.122b9%40MacBook-Air-de-David.local. For more options, visit https://groups.google.com/d/optout.
