Skip to content

Fix ignore_unmapped setting when using geo_shape query with a pre-indexed shape#136961

Merged
iverase merged 2 commits intoelastic:mainfrom
iverase:fixUnmappedrewrite
Oct 22, 2025
Merged

Fix ignore_unmapped setting when using geo_shape query with a pre-indexed shape#136961
iverase merged 2 commits intoelastic:mainfrom
iverase:fixUnmappedrewrite

Conversation

@iverase
Copy link
Contributor

@iverase iverase commented Oct 22, 2025

GeoShapeQueryBuilder ignores the value of ignoreUnmapped when rewriting the query so those queries always get a false value. This commit make sure the variable gets correctly assigned.

fixes #136954

@iverase iverase requested a review from craigtaverner October 22, 2025 13:49
@iverase iverase added >bug :Analytics/Geo Indexing, search aggregations of geo points and shapes v9.2.1 v9.3.0 v8.19.7 v9.1.7 labels Oct 22, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) label Oct 22, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-analytical-engine (Team:Analytics)

@elasticsearchmachine
Copy link
Collaborator

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

@iverase iverase added the auto-backport Automatically create backport pull requests when merged label Oct 22, 2025
Copy link
Contributor

@craigtaverner craigtaverner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@iverase iverase merged commit 1d21778 into elastic:main Oct 22, 2025
34 checks passed
@iverase iverase deleted the fixUnmappedrewrite branch October 22, 2025 15:37
iverase added a commit to iverase/elasticsearch that referenced this pull request Oct 22, 2025
…exed shape (elastic#136961)

GeoShapeQueryBuilder ignores the value of ignoreUnmapped when rewriting the query so those queries always
get a false value. This commit make sure the variable gets correctly assigned.
@elasticsearchmachine
Copy link
Collaborator

💚 Backport successful

Status Branch Result
9.2
8.19
9.1
iverase added a commit to iverase/elasticsearch that referenced this pull request Oct 22, 2025
…exed shape (elastic#136961)

GeoShapeQueryBuilder ignores the value of ignoreUnmapped when rewriting the query so those queries always
get a false value. This commit make sure the variable gets correctly assigned.
iverase added a commit to iverase/elasticsearch that referenced this pull request Oct 22, 2025
…exed shape (elastic#136961)

GeoShapeQueryBuilder ignores the value of ignoreUnmapped when rewriting the query so those queries always
get a false value. This commit make sure the variable gets correctly assigned.
elasticsearchmachine pushed a commit that referenced this pull request Oct 22, 2025
…exed shape (#136961) (#136975)

GeoShapeQueryBuilder ignores the value of ignoreUnmapped when rewriting the query so those queries always
get a false value. This commit make sure the variable gets correctly assigned.
elasticsearchmachine pushed a commit that referenced this pull request Oct 22, 2025
…exed shape (#136961) (#136973)

GeoShapeQueryBuilder ignores the value of ignoreUnmapped when rewriting the query so those queries always
get a false value. This commit make sure the variable gets correctly assigned.
elasticsearchmachine pushed a commit that referenced this pull request Oct 22, 2025
…pre-indexed shape (#136961) (#136974)

* Fix ignore_unmapped setting when using geo_shape query with a pre-indexed shape (#136961)

GeoShapeQueryBuilder ignores the value of ignoreUnmapped when rewriting the query so those queries always
get a false value. This commit make sure the variable gets correctly assigned.

* iter
fzowl pushed a commit to voyage-ai/elasticsearch that referenced this pull request Nov 3, 2025
…exed shape (elastic#136961)

GeoShapeQueryBuilder ignores the value of ignoreUnmapped when rewriting the query so those queries always
get a false value. This commit make sure the variable gets correctly assigned.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:Analytics/Geo Indexing, search aggregations of geo points and shapes auto-backport Automatically create backport pull requests when merged >bug Team:Analytics Meta label for analytical engine team (ESQL/Aggs/Geo) v8.19.7 v9.1.7 v9.2.1 v9.3.0

3 participants