-
Notifications
You must be signed in to change notification settings - Fork 25.2k
Select time-series indices with TS command #126436
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
Conversation
Pinging @elastic/es-analytical-engine (Team:Analytics) |
Pinging @elastic/es-storage-engine (Team:StorageEngine) |
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 👍
// TODO: Maybe if no indices are returned, retry without index mode and provide a clearer error message. | ||
var indexModeFilter = new TermQueryBuilder(IndexModeFieldMapper.NAME, IndexMode.TIME_SERIES.getName()); | ||
if (requestFilter != null) { | ||
requestFilter = new BoolQueryBuilder().filter(requestFilter).filter(indexModeFilter); |
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.
How fast is this? Do we need to worry about performance?
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.
There is an overhead with field-caps when using indexFilter, as we have to dispatch sub-requests for every copy instead of one copy per index without the filter. However, this overhead should be small, and we plan to work on minimizing the overhead for index filters that can be rewritten on the coordinators.
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.
Just a minor question, looks good otherwise.
@martijnvg @kkrik-es Thanks! |
With this change, the TS command will target only time_series indexes.