-
Notifications
You must be signed in to change notification settings - Fork 24.8k
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
Fix _terms_enum default indices options #75172
Conversation
This commit changes the default indices options of the new terms enum API to be consistent with _search. This change also fixes the shards statistics in the response when ccs is involved. Closes elastic#75155
Pinging @elastic/es-search (Team:Search) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I assume we don't need to add CCS tests for the failing scenario because the existing tests for IndicesOptions should cover this scenario?
|
||
/** | ||
* A request to gather terms for a given field matching a string prefix | ||
*/ | ||
public class TermsEnumRequest extends BroadcastRequest<TermsEnumRequest> implements ToXContentObject { | ||
|
||
public static final IndicesOptions DEFAULT_INDICES_OPTIONS = SearchRequest.DEFAULT_INDICES_OPTIONS; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Safe to assume terms_enum options will always be aligned with that of search?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's the intent of the PR, yes.
This commit changes the default indices options of the new terms enum API to be consistent with _search. This change also fixes the shards statistics in the response when ccs is involved. Closes elastic#75155
This commit changes the default indices options of the new terms enum API to be consistent with _search. This change also fixes the shards statistics in the response when ccs is involved. Closes elastic#75155
This commit changes the default indices options of the new terms enum API
to be consistent with _search.
This change also fixes the shards statistics in the response when ccs is involved.
Closes #75155