type有username字段,希望查出username值为abc的精准内容
json
{ "query": { "filtered": { "query": { "match": { "username": "abc" } } } } }
结果查出除了abc还有abcd、xxabcxx的内容。。。
使用term精确匹配,但是这个不支持中文。中文只能使用模糊的查询
随便搜一搜就有了。
type有username字段,希望查出username值为abc的精准内容
json
{ "query": { "filtered": { "query": { "match": { "username": "abc" } } } } }
结果查出除了abc还有abcd、xxabcxx的内容。。。
使用term精确匹配,但是这个不支持中文。中文只能使用模糊的查询
随便搜一搜就有了。