Query DSL(2)----Full text queries

Match Query

 

match查询接受文本/数值/日期

{
    "match" : {
        "message" : "this is a test"
    }
}

match支持三种类型:

booleanphrase,phrase_prefix

boolean

match查询默认是boolean查询。这意味着现有的文本已通过分析,分析的整个过程就形成了文本的布尔查询(逻辑查询)。operator可以是and和or(默认是or)

 

posted @ 2016-11-25 18:14  Mr.Ming2  阅读(241)  评论(0)    收藏  举报