Es7.x querystring can't boost NOT query

I found that from es7.0,querystring query can't boost NOT query,like below code,the result score is 0,not 100 as expect.I alse check in es5.x and es6.x it work as expect.someone know why?

PUT test/_doc/1
{
  "test": "1"
}
GET test/_search
{
  "query": {
    "query_string": {
      "query": "(NOT _exists_:abc)^100"
    }
  }
}
1 Like

I suffered from this issue as well, and think it 's a big problem which lead to incorrect boost score, hope it could be solved as soon as possible.

I finally found the problem,about this commit.

it change BooleanClause.Occur.MUST to BooleanClause.Occur.FILTER in fixNegativeQueryIfNeeded,that result in the score become 0

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