Skip to content

Filter default fields to indexed-only in strict columnar mode#151136

Draft
martijnvg wants to merge 2 commits into
elastic:mainfrom
martijnvg:columnar-default-fields-filter
Draft

Filter default fields to indexed-only in strict columnar mode#151136
martijnvg wants to merge 2 commits into
elastic:mainfrom
martijnvg:columnar-default-fields-filter

Conversation

@martijnvg

Copy link
Copy Markdown
Member

When index.query.default_field is '*' and the index mode is strictly columnar, SearchExecutionContext#defaultFields() now expands the wildcard to only those fields that are indexed (isSearchable() == true) and are not metadata fields. This prevents query types such as query_string, simple_query_string, and multi_match from inadvertently targeting non-indexed columnar-only fields by default.

When index.query.default_field is '*' and the index mode is strictly
columnar, SearchExecutionContext#defaultFields() now expands the
wildcard to only those fields that are indexed (isSearchable() == true)
and are not metadata fields. This prevents query types such as
query_string, simple_query_string, and multi_match from inadvertently
targeting non-indexed columnar-only fields by default.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants