Skip to content

Rename DatastoreQuery#search_index_definitions to initial_search_index_definitions#1253

Merged
myronmarston merged 1 commit into
mainfrom
mdaniels/rename-search-index-definitions
Jun 12, 2026
Merged

Rename DatastoreQuery#search_index_definitions to initial_search_index_definitions#1253
myronmarston merged 1 commit into
mainfrom
mdaniels/rename-search-index-definitions

Conversation

@marcdaniels-toast

@marcdaniels-toast marcdaniels-toast commented Jun 12, 2026

Copy link
Copy Markdown
Collaborator

Summary

Spun out of #1229 to ease review. This is just a rename; there are intentionally no behavior changes.

Renames the DatastoreQuery field search_index_definitions to initial_search_index_definitions across all callers and tests, and adds a YARD doc describing it as "the index definitions as provided at construction, before any subsequent adjustments."

The new name sets up a clear contrast with narrowed_search_index_definitions introduced in #1229, which derives a refined set based on query filters.

Note

This could be a breaking change for ElasticGraph application maintainers, if their
application has any query interceptors that reference query.search_index_definitions.
The next release will need to be minor version bump (v1.3.0) and this should be
called out in the upgrade section of the release notes.

🤖 Generated with Claude Code

…x_definitions.

The new name better conveys intent: these are the index definitions provided
at construction time, before any query-time refinement. This lays the
groundwork for introducing a separate `narrowed_search_index_definitions`
that will be used only when building the search index expression.

Generated with Claude Code
@myronmarston myronmarston merged commit 8be4954 into main Jun 12, 2026
25 checks passed
@myronmarston myronmarston deleted the mdaniels/rename-search-index-definitions branch June 12, 2026 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants