- 
                Notifications
    You must be signed in to change notification settings 
- Fork 25.6k
          ccs_minimize_roundtrips should default to true for async search for CPS
          #135614
        
          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
Changes from 6 commits
972f34e
              a72a5d9
              10662e6
              80461af
              2b3117d
              6ae750a
              f35bf00
              264302e
              fcf4f09
              fbffdfe
              d2306a4
              File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | 
|---|---|---|
|  | @@ -26,6 +26,7 @@ | |
|  | ||
| import java.io.IOException; | ||
| import java.util.Map; | ||
| import java.util.Optional; | ||
| import java.util.function.Consumer; | ||
| import java.util.function.Predicate; | ||
|  | ||
|  | @@ -52,7 +53,14 @@ protected void parseInternalRequest( | |
| SearchRequest searchRequest = internal.getSearchRequest(); | ||
|  | ||
| try (XContentParser parser = extractRequestSpecificFields(restRequest, bodyConsumers)) { | ||
| RestSearchAction.parseSearchRequest(searchRequest, restRequest, parser, clusterSupportsFeature, size -> failOnSizeSpecified()); | ||
| RestSearchAction.parseSearchRequest( | ||
| searchRequest, | ||
| restRequest, | ||
| parser, | ||
| clusterSupportsFeature, | ||
| size -> failOnSizeSpecified(), | ||
| Optional.empty() | ||
| There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do we know that none of the subclasses of this class are cross-project enabled? We'll need to track those down and ensure that this Optional.empty() is valid for all. Otherwise, that arg will need to be added to the  There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Irrespective of whether they're CPS-enabled or not,  
 Passing in  There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I don't think I follow. If any CPS-enabled endpoints are using this  There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The two endpoints using  There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. IMO, we should prevent Cross Cluster ops for them like we're planning to do for Fleet searches. | ||
| ); | ||
| } | ||
|  | ||
| searchRequest.source().size(restRequest.paramAsInt("scroll_size", searchRequest.source().size())); | ||
|  | ||
Uh oh!
There was an error while loading. Please reload this page.