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 -

how to prompt save As Box in Excel Interlop c# MVC 4 -

xslt 1.0 - How to access or retrieve mets content of an item from another item? -