elasticsearch query issue with ngram
问题 i have this data in my index https://gist.github.com/bitgandtter/6794d9b48ae914a3ac7c If you notice in the mapping im using the ngram from 3 tokens to 20. when i execute this query: GET /my_index/user/_search?search_type=dfs_query_then_fetch { "query": { "filtered": { "query":{ "multi_match":{ "query": "F", "fields": ["username","firstname","middlename","lastname"], "analyzer": "custom_search_analyzer" } } } } } I should get the 8 documents i have indexed but i get only 6 leaving out two with