Module org.elasticsearch.server
Class SearchParamsParser
java.lang.Object
org.elasticsearch.rest.action.search.SearchParamsParser
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic booleanparseCcsMinimizeRoundtrips(Optional<Boolean> crossProjectEnabled, RestRequest request) For CPS, we do not necessarily want to use the MRT value that the user has provided.static booleanparseCcsMinimizeRoundtrips(Optional<Boolean> crossProjectEnabled, RestRequest request, boolean defaultValue)
-
Field Details
-
MRT_SET_IN_CPS_WARN
- See Also:
-
-
Constructor Details
-
SearchParamsParser
public SearchParamsParser()
-
-
Method Details
-
parseCcsMinimizeRoundtrips
public static boolean parseCcsMinimizeRoundtrips(Optional<Boolean> crossProjectEnabled, RestRequest request) For CPS, we do not necessarily want to use the MRT value that the user has provided. Instead, we'd want to ignore it and default searches to `true` whilst issuing a warning via the headers.- Parameters:
crossProjectEnabled- If running in Cross Project Search environment.request- Rest request that we're parsing.- Returns:
- A boolean that determines if round trips should be minimised for this search request.
-
parseCcsMinimizeRoundtrips
public static boolean parseCcsMinimizeRoundtrips(Optional<Boolean> crossProjectEnabled, RestRequest request, boolean defaultValue)
-