Elasticsearch: How to search with different analyzers?
问题 I'm using my custom analyzer autocomplete_analyzer with filter edgeNGram . So mapping looks like: "acts_as_taggable_on_tags" : { "acts_as_taggable_on/tag" : { "properties" : { "name" : { "type" : "string", "boost" : 10.0, "analyzer" : "autocomplete_analyzer" } } } } When I search using query_string , it works like autocomplete. For example, query "lon" returns ["lon", "long", "london",...]. But sometimes I need exact matching. How can I get just one exactly matching word "lon"? Can I use