Span Term 查询

匹配包含术语的跨度。Span Term查询映射到Lucene SpanTermQuery。这是一个例子:

GET /_search
{
    "query": {
        "span_term" : { "user" : "kimchy" }
    }
}

升级也可以与查询相关联:

GET /_search
{
    "query": {
       "span_term" : { "user" : { "value" : "kimchy", "boost" : 2.0 } }
    }
}

或者 :

GET /_search
{
    "query": {
        "span_term" : { "user" : { "term" : "kimchy", "boost" : 2.0 } }
    }
}