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
Post a Comment