this dsl:
{ "query": { "function_score": { "query": { "multi_match": { "query": "testa", "analyzer":"standard", "type": "best_fields", "fields": [ "name^5", "content^1" ] } }, "field_value_factor": { "field": "popular", "modifier": "log1p", "factor": 0.1 }, "boost_mode": "sum", "max_boost": 1.5 } } }
when search keyword 'testa',the result contains keyword 'testa',what should make results contains keywords 'testa' , 'test' or 'tes'? thank you.
you can use ngram partial words search, need reindex documents.
you can check official example