Query_string does not perform consistently in versions 6 and 7

version: 6.7.0 and 7.17.6
mapping:

{
  "t1": {
    "type": "text",
    "analyzer": "ik_max_word"
  },
  "t2": {
    "type": "text",
    "analyzer": "ik_max_word"
  }
}

DSL:

POST test1/_search
{
  "query": {
    "bool": {
      "filter": [
        {
          "query_string": {
            "fields": [
              "t3"
            ],
            "query": """NOT("test")"""
          }
        }
      ]
    }
  }
}

Because there is no t3 field:
ES6 running the above statement returns 0 docs,
while ES7 running the statement returns all docs.
Was it in which version that the semantics of this situation were corrected?
What parameters can I configure to ensure consistency between ES7 and ES6 query results?

please help me

Could you provide a full recreation script as described in About the Elasticsearch category. It will help to better understand what you are doing. Please, try to keep the example as simple as possible.

A full reproduction script is something anyone can copy and paste in Kibana dev console, click on the run button to reproduce your use case. It will help readers to understand, reproduce and if needed fix your problem. It will also most likely help to get a faster answer.

Have a look at the https://elastic.co/community/help page. It contains also lot of useful information on how to ask for help.

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