Elasticsearch highlight complete word instead of query string
i'm trying to implement autocomplete with elasticsearch and yii2 framework. I'm getting the search result but substring highlighting is not working, for example, if I search uni it returns "United States" instead of "United States". Here is the index setting: 'settings' => [ 'number_of_shards' => 1, 'analysis' => [ 'analyzer' => [ "autocomplete" => [ "type" => "custom", "tokenizer" => "standard", "filter" => ["lowercase", "autocomplete_filter"], ], ], 'filter' => [ "autocomplete_filter" => [ "type" => "edge_ngram", "min_gram" => 2, "max_gram" => 15, ], ], ], ], 'properties' => [ 'id' => ['type' => 'integer'], 'name' => [ 'type' => 'string', "analyzer" => "autocomplete", "search_analyzer" => "standard", ], 'email' => ['type' => 'string'], ] Please tell how can I achieve this.
Snowball analyzer vs language analyzer
AND between tokens in elasticsearch
Elasticsearch Stemmer Override Token Filter not working when usind rules path
Logstash extracting values from sp_executesql
Logstash Grok Modifying and overwriting #timestamp
how to restore elasticsearch.yml config file to original?
Index a graph with ElasticSearch
ElasticSearch query not returning expected results
Fluentd High Availability Custom Index
How do I add an attribute to an Elasticsearch node for the purpose of Shard Allocation Filtering?
Configure ElasticSearch attachment mapper to use OCR plugin
ElasticSearch: How to search for a value in any field, across all types, in one or more indices?
Phrase suggestor - which index and query to act upon
Adding additional fields to ElasticSearch terms aggregation
ElasticSearch multi_match if field exists apply filter otherwise dont worry about it?