match查询接受文本/数值/日期
{ "match" : { "message" : "this is a test" } }
match支持三种类型:
boolean, phrase,phrase_prefix
boolean
phrase
phrase_prefix
match查询默认是boolean查询。这意味着现有的文本已通过分析,分析的整个过程就形成了文本的布尔查询(逻辑查询)。operator可以是and和or(默认是or)
operator可以是and和or(默认是or)