Skip to content

Conversation

romseygeek
Copy link
Contributor

@romseygeek romseygeek commented Sep 10, 2025

Backports the following commits to 8.19:

Use inner query for equals/hashCode() in SourceConfirmedTextQuery (#134451)

…astic#134451)

We were using a valueFetcher lambda and an Analyzer as part of the
equals  and hashCode implementations which could easily compare as
unequal for  logically equal queries.  We can safely just use the inner
query for comparisons  and hashcodes as the results of the outer query
are identical to running the  inner query against a shard with indexed
positions.

Fixes elastic#134432
@romseygeek romseygeek self-assigned this Sep 10, 2025
@romseygeek romseygeek added >bug :Search/Search Search-related issues that do not fall into other categories v8.19.5 auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) labels Sep 10, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Search Meta label for search team label Sep 10, 2025
@elasticsearchmachine
Copy link
Collaborator

Hi @romseygeek, I've created a changelog YAML for you.

@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-search (Team:Search)

@elasticsearchmachine elasticsearchmachine merged commit 5e30504 into elastic:8.19 Sep 10, 2025
22 checks passed
@romseygeek romseygeek deleted the 8.19 branch September 10, 2025 16:37
sarog pushed a commit to portsbuild/elasticsearch that referenced this pull request Sep 11, 2025
…astic#134451) (elastic#134459)

* Use inner query for equals/hashCode() in SourceConfirmedTextQuery (elastic#134451)

We were using a valueFetcher lambda and an Analyzer as part of the
equals  and hashCode implementations which could easily compare as
unequal for  logically equal queries.  We can safely just use the inner
query for comparisons  and hashcodes as the results of the outer query
are identical to running the  inner query against a shard with indexed
positions.

Fixes elastic#134432

* Update docs/changelog/134459.yaml

* Delete docs/changelog/134459.yaml
sarog pushed a commit to portsbuild/elasticsearch that referenced this pull request Sep 19, 2025
…astic#134451) (elastic#134459)

* Use inner query for equals/hashCode() in SourceConfirmedTextQuery (elastic#134451)

We were using a valueFetcher lambda and an Analyzer as part of the
equals  and hashCode implementations which could easily compare as
unequal for  logically equal queries.  We can safely just use the inner
query for comparisons  and hashcodes as the results of the outer query
are identical to running the  inner query against a shard with indexed
positions.

Fixes elastic#134432

* Update docs/changelog/134459.yaml

* Delete docs/changelog/134459.yaml
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >bug :Search/Search Search-related issues that do not fall into other categories Team:Search Meta label for search team v8.19.5

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants