Thanks for the reply Prashy - I tried performing a term query like you suggested; I get the same results (all documents containing main are returned...E Main St, W Main St...) Do you only get one document returned using the example I provided above (doc id 9/"Main")??
On Thursday, February 27, 2014 2:25:09 AM UTC-5, Prashy wrote: > > Try using the term query as term query is not analyzed so it might search > the > exact term only. > > { > "query" : { > "term" : { "street" : "xxx" } > } > } > > > > -- > View this message in context: > http://elasticsearch-users.115913.n3.nabble.com/Exact-phrase-match-city-names-example-tp4019310p4050604.html > > Sent from the ElasticSearch Users mailing list archive at Nabble.com. > -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/6c5de1e2-b65d-4824-81d5-2e0e9636094d%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.