Why query_string not worked when used in highlight_query?

field "regAggress" is Text type

"regContactAddress" : {
          "type" : "text",
          "analyzer" : "aliws"
}

query example:
{
  "_source": ["regContactAddress","_id","entName"], 
  "highlight": {
    "fields": {
      "regContactAddress": {
        "fragment_size": 10,
        "number_of_fragments": 1,
        "highlight_query": {
          "query_string": {
            "default_field": "regContactAddress",
            "query": "天津滨海新区",
            "default_operator": "AND"
          }
        },
        "force_source": "false"
      }
    }
  },
  "query": {
    "query_string": {
      "default_field": "regContactAddress",
      "query": "上海市浦东新区"
    }
  }
}
when I execute that query,result is :
{
        "_source" : {
          "regContactAddress" : "上海市浦东新区浦东大道"
        },
        "highlight" : {
          "regContactAddress" : [
            "上海市浦东<em>新区</em>浦东大道"
          ]
        }
 }
why final result highlight_query <em>新区</em>? I think should match no <em> .

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.