Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some queries do not respect the index.query.parse.allow_unmapped_fields index setting #110156

Open
Mikep86 opened this issue Jun 25, 2024 · 5 comments
Assignees
Labels
>bug priority:normal A label for assessing bug priority to be used by ES engineers :Search Relevance/Search Catch all for Search Relevance Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch v9.0.0

Comments

@Mikep86
Copy link
Contributor

Mikep86 commented Jun 25, 2024

Elasticsearch Version

8.15

Installed Plugins

No response

Java Version

bundled

OS Version

N/A

Problem Description

Some queries do not respect the index.query.parse.allow_unmapped_fields index setting, resulting in them throwing an exception when they should instead return no results. This issue is intended to track all the queries that should be updated:

Steps to Reproduce

N/A

Logs (if relevant)

No response

@Mikep86 Mikep86 added >bug :Search/Search Search-related issues that do not fall into other categories v8.15.0 labels Jun 25, 2024
@elasticsearchmachine elasticsearchmachine added the Team:Search Meta label for search team label Jun 25, 2024
@elasticsearchmachine
Copy link
Collaborator

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

@benwtrent benwtrent added the priority:normal A label for assessing bug priority to be used by ES engineers label Jul 9, 2024
@benwtrent
Copy link
Member

This is owned by the @elastic/es-search-relevance team.

@benwtrent benwtrent added the Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch label Jul 9, 2024
@elasticsearchmachine elasticsearchmachine removed the Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch label Jul 9, 2024
@benwtrent
Copy link
Member

I went through the queries and the only three I could find that do not respect this index setting are:

PercolatorQueryBuilder

WeightedTokensQueryBuilder

SparseVectorQueryBuilder

@benwtrent benwtrent added :Search Relevance/Search Catch all for Search Relevance and removed :Search/Search Search-related issues that do not fall into other categories labels Jul 12, 2024
@elasticsearchmachine elasticsearchmachine added the Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch label Jul 12, 2024
@elasticsearchmachine
Copy link
Collaborator

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

@elasticsearchmachine elasticsearchmachine removed the Team:Search Meta label for search team label Jul 12, 2024
@Mikep86
Copy link
Contributor Author

Mikep86 commented Aug 12, 2024

The nested query also does not respect this setting. Instead, it gets the value from the user-provided "ignore_unmapped" field at query time.

@tteofili tteofili self-assigned this Sep 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug priority:normal A label for assessing bug priority to be used by ES engineers :Search Relevance/Search Catch all for Search Relevance Team:Search Relevance Meta label for the Search Relevance team in Elasticsearch v9.0.0
Projects
None yet
Development

No branches or pull requests

5 participants