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

swift - Button on Table View Cell connected to local function -

dns - Dokku server hosts two sites with TLD's, both domains are landing on only one app -

c# - ajax - How to receive data both html and json from server? -