# Some Change in Percolation/QueryStringQuery/Mapping between 7.6.2 and 7.7.0?

**URL:** <https://discuss.elastic.co/t/some-change-in-percolation-querystringquery-mapping-between-7-6-2-and-7-7-0/250579>\
**Category:** Elasticsearch\
**Created:** [October 1, 2020, 12:21am UTC](https://discuss.elastic.co/t/some-change-in-percolation-querystringquery-mapping-between-7-6-2-and-7-7-0/250579 "2020-10-01T00:21:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Andrew\_DS](https://avatars.discourse-cdn.com/v4/letter/a/e9bcb4/32.png) [@Andrew\_DS](https://discuss.elastic.co/u/Andrew_DS)\
**Post date:** [October 1, 2020, 12:21am UTC](https://discuss.elastic.co/t/some-change-in-percolation-querystringquery-mapping-between-7-6-2-and-7-7-0/250579/1 "2020-10-01T00:21:54Z")

</div>

I've noticed that, while trying to migrate from Elasticsearch 7.5.2 -\> 7.9.2, something seems to have changed in how percolator queries seem to work. I have narrowed down my problem to a change between 7.6.2 and 7.7.0; the following repro results in 1 hit in ES 7.6.2, but 0 hits in ES 7.7+:

```auto
curl -XPUT "localhost:${PORT}/percolation-index" -H 'Content-Type:application/json' -d '
{
  "settings": {
    "percolator": {
      "map_unmapped_fields_as_text": true
    }
  },
  "mappings": {
    "properties": {
      "percolator_field": {
        "type": "percolator"
      }
    }
  }
}'
curl -XPOST "localhost:${PORT}/percolation-index/_doc?refresh=true" -H 'Content-Type:application/json' -d '
{
  "percolator_field": {
	"query_string": {
	  "query": "message:test"
	}
  }
}'
curl -XPOST "localhost:${PORT}/percolation-index/_search?pretty" -H 'Content-Type:application/json' -d '
{
  "query": {
    "percolate": {
      "field": "percolator_field",
      "document": {
        "message": "test stuff"
      }
    }
  }
}'

```

If I instead do a `match` query in my percolator:

```auto
curl -XPOST "localhost:${PORT}/percolation-index/_doc?refresh=true" -H 'Content-Type:application/json' -d '
{
  "percolator_field": {
	"match": {
	  "message": "test"
	}
  }
}'

```

The percolator matches as expected on both versions.

---

<div class="post-metadata">

**Author:** ![Jesbourne](https://avatars.discourse-cdn.com/v4/letter/j/bcef8e/32.png) [@Jesbourne](https://discuss.elastic.co/u/Jesbourne)\
**Post date:** [October 27, 2020, 6:32pm UTC](https://discuss.elastic.co/t/some-change-in-percolation-querystringquery-mapping-between-7-6-2-and-7-7-0/250579/2 "2020-10-27T18:32:28Z")

</div>

Can we get an update on this? This is blocking our 7.9.2 upgrade, and there don't seem to be any mention of this change in the release docs.

---

<div class="post-metadata">

**Author:** ![Jesbourne](https://avatars.discourse-cdn.com/v4/letter/j/bcef8e/32.png) [@Jesbourne](https://discuss.elastic.co/u/Jesbourne)\
**Post date:** [November 4, 2020, 6:25pm UTC](https://discuss.elastic.co/t/some-change-in-percolation-querystringquery-mapping-between-7-6-2-and-7-7-0/250579/3 "2020-11-04T18:25:43Z")

</div>

This issue was also filed as a bug - [https://github.com/elastic/elasticsearch/issues/63150](https://github.com/elastic/elasticsearch/issues/63150)

We noticed the 7.9.3 and 7.9.4 tag were added to it, but no info on why. Will this be fixed in 7.9.4?

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 4, 2020, 9:16pm UTC](https://discuss.elastic.co/t/some-change-in-percolation-querystringquery-mapping-between-7-6-2-and-7-7-0/250579/4 "2020-11-04T21:16:02Z")

</div>

May be @HenningAndersen can tell if this will be fixed in a coming version?

_Side note: I don't think that we should tag an issue with the expected version but instead we should tag the PR. My 2 cents._

---

<div class="post-metadata">

**Author:** ![HenningAndersen](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/henningandersen/32/48188_2.png) [@HenningAndersen](https://discuss.elastic.co/u/HenningAndersen)\
**Post date:** [November 6, 2020, 1:31pm UTC](https://discuss.elastic.co/t/some-change-in-percolation-querystringquery-mapping-between-7-6-2-and-7-7-0/250579/5 "2020-11-06T13:31:15Z")

</div>

I added the label because it was indicated in the issue that the problem exists on the specific version, not as an indication of resolution version. I removed the label to avoid this confusion.

I have no info about whether or when a fix can be expected.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 4, 2020, 1:31pm UTC](https://discuss.elastic.co/t/some-change-in-percolation-querystringquery-mapping-between-7-6-2-and-7-7-0/250579/6 "2020-12-04T13:31:16Z")

</div>

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