-
Notifications
You must be signed in to change notification settings - Fork 24.9k
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
Minimize search source of shard level search requests #80634
Conversation
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.
I left some comments.
server/src/main/java/org/elasticsearch/search/builder/SearchSourceBuilder.java
Outdated
Show resolved
Hide resolved
server/src/main/java/org/elasticsearch/search/internal/ShardSearchRequest.java
Outdated
Show resolved
Hide resolved
@jimczi I've addressed your comments. Can you take another look? Thank you! |
server/src/main/java/org/elasticsearch/search/internal/ShardSearchRequest.java
Outdated
Show resolved
Hide resolved
@elasticmachine update branch |
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
Thanks Jim! |
This change reduces the memory usage and serialization cost of shard-level search requests by discarding the point in time and collapse from search sources of these shard-level requests. Relates elastic#80187
💔 Backport failed
You can use sqren/backport to manually backport by running |
This change reduces the memory usage and serialization cost of shard-level search requests by discarding the point in time and collapse from search sources of these shard-level requests. Relates elastic#80187
This change reduces the memory usage and serialization cost of shard-level search requests by discarding the point in time and collapse from search sources of these shard-level requests.
I will work on another PR to remove SearchContextId from search responses.
Relates #80187