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

renaming files in a directory using python or R -

html - outline-style different in chrome compared to firefox and internet explorer -

ruby on rails - Carrierwave Timeout -