指数:
{ "settings": { "index.percolator.map_unmapped_fields_as_text": true, }, "mappings": { "properties": { "query": { "type": "percolator" } } } }
此测试过滤器查询有效
{ "query": { "match": { "message": "blah" } } }
此查询不起作用
{ "query": { "simple_query_string": { "query": "bl*" } } }
结果:
{"took":15,"timed_out":false,"_shards":{"total":5,"successful":5,"skipped":0,"failed":0},"hits":{"total":{"value":1,"relation":"eq"},"max_score":0.13076457,"hits":[{"_index":"my-index","_type":"_doc","_id":"1","_score":0.13076457,"_source":{"query":{"match":{"message":"blah"}}},"fields":{"_percolator_document_slot":[0]}}]}}
为什么此simple_query_string查询与文档不匹配?