database - Elasticsearchs- start with or contains on double analyezd field -


i trying make query gives the docoments start-with or contains in analayezd double field.

wildcards should applied on not analyzed fields. add subfield type keyword, , use wildcard query.

however, there more efficient solution using ngrams. configure subfield ngram tokenizer. see https://www.elastic.co/guide/en/elasticsearch/reference/current/analysis-ngram-tokenizer.html


Comments

Popular posts from this blog

c# - Binding a comma separated list to a List<int> in asp.net web api -

Delphi 7 and decode UTF-8 base64 -

html - Is there any way to exclude a single element from the style? (Bootstrap) -