Class FleetSearchRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.fleet.FleetSearchRequest
- All Implemented Interfaces:
- JsonpSerializable
@JsonpDeserializable
public class FleetSearchRequest
extends RequestBase
implements JsonpSerializable
Run a Fleet search. The purpose of the Fleet search API is to provide an API
 where the search will be run only after the provided checkpoint has been
 processed and is visible for searches inside of Elasticsearch.
- See Also:
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBaseRequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<FleetSearchRequest>Json deserializer forFleetSearchRequeststatic final SimpleEndpoint<FleetSearchRequest,?> Endpoint "fleet.search".
- 
Method SummaryModifier and TypeMethodDescriptionfinal Map<String,Aggregation> API name:aggregationsfinal BooleanAPI name:allow_no_indicesfinal BooleanIf true, returns partial results if there are shard request timeouts or shard failures.final Stringanalyzer()API name:analyzerfinal BooleanAPI name:analyze_wildcardfinal LongAPI name:batched_reduce_sizefinal BooleanAPI name:ccs_minimize_roundtripsfinal FieldCollapsecollapse()API name:collapsestatic <TDocument>
 Endpoint<FleetSearchRequest,FleetSearchResponse<TDocument>, ErrorResponse> createSearchEndpoint(JsonpDeserializer<TDocument> tDocumentDeserializer) Create an "fleet.search" endpoint.final OperatorAPI name:default_operatorfinal Stringdf()API name:dffinal List<FieldAndFormat>Array of wildcard (*) patterns.final List<ExpandWildcard>API name:expand_wildcardsfinal Booleanexplain()If true, returns detailed information about score computation as part of a hit.ext()Configuration of search extensions defined by Elasticsearch plugins.final List<FieldAndFormat>fields()Array of wildcard (*) patterns.final Integerfrom()Starting document offset.final HighlightAPI name:highlightfinal BooleanAPI name:ignore_throttledfinal BooleanAPI name:ignore_unavailablefinal Stringindex()Required - A single target to search.final List<NamedValue<Double>>Boosts the _score of documents from specified indices.final Booleanlenient()API name:lenientfinal IntegerAPI name:max_concurrent_shard_requestsfinal DoubleminScore()Minimum _score for matching documents.static FleetSearchRequestfinal PointInTimeReferencepit()Limits the search to a point in time (PIT).final QueryAPI name:post_filterfinal StringAPI name:preferencefinal LongAPI name:pre_filter_shard_sizefinal Booleanprofile()API name:profilefinal Stringq()API name:qfinal Queryquery()Defines the search definition using the Query DSL.final BooleanAPI name:request_cacherescore()API name:rescorefinal Stringrouting()API name:routingfinal Map<String,RuntimeField> Defines one or more runtime fields in the search request.final Map<String,ScriptField> Retrieve a script evaluation (based on different fields) for each hit.final Timescroll()API name:scrollfinal List<FieldValue>API name:search_afterfinal SearchTypeAPI name:search_typefinal BooleanIf true, returns sequence number and primary term of the last modification of each hit.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Integersize()The number of hits to return.final SlicedScrollslice()API name:slicefinal List<SortOptions>sort()API name:sortfinal SourceConfigsource()Indicates which source fields are returned for matching documents.stats()Stats groups to associate with the search.List of stored fields to return as part of a hit.final Suggestersuggest()API name:suggestfinal LongMaximum number of documents to collect for each shard.final Stringtimeout()Specifies the period of time to wait for a response from each shard.final BooleanIf true, calculate and return document scores, even if the scores are not used for sorting.final TrackHitsNumber of hits matching the query to count accurately.final Booleanversion()If true, returns document version as part of a hit.A comma separated list of checkpoints.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBasetoString
- 
Field Details- 
_DESERIALIZERJson deserializer forFleetSearchRequest
- 
_ENDPOINTEndpoint "fleet.search".
 
- 
- 
Method Details- 
ofpublic static FleetSearchRequest of(Function<FleetSearchRequest.Builder, ObjectBuilder<FleetSearchRequest>> fn) 
- 
sourceIndicates which source fields are returned for matching documents. These fields are returned in the hits._source property of the search response.API name: _source
- 
aggregationsAPI name:aggregations
- 
allowNoIndicesAPI name:allow_no_indices
- 
allowPartialSearchResultsIf true, returns partial results if there are shard request timeouts or shard failures. If false, returns an error with no partial results. Defaults to the configured cluster settingsearch.default_allow_partial_results, which is true by default.API name: allow_partial_search_results
- 
analyzeWildcardAPI name:analyze_wildcard
- 
analyzerAPI name:analyzer
- 
batchedReduceSizeAPI name:batched_reduce_size
- 
ccsMinimizeRoundtripsAPI name:ccs_minimize_roundtrips
- 
collapseAPI name:collapse
- 
defaultOperatorAPI name:default_operator
- 
dfAPI name:df
- 
docvalueFieldsArray of wildcard (*) patterns. The request returns doc values for field names matching these patterns in the hits.fields property of the response.API name: docvalue_fields
- 
expandWildcardsAPI name:expand_wildcards
- 
explainIf true, returns detailed information about score computation as part of a hit.API name: explain
- 
extConfiguration of search extensions defined by Elasticsearch plugins.API name: ext
- 
fieldsArray of wildcard (*) patterns. The request returns values for field names matching these patterns in the hits.fields property of the response.API name: fields
- 
fromStarting document offset. By default, you cannot page through more than 10,000 hits using the from and size parameters. To page through more hits, use the search_after parameter.API name: from
- 
highlightAPI name:highlight
- 
ignoreThrottledAPI name:ignore_throttled
- 
indexRequired - A single target to search. If the target is an index alias, it must resolve to a single index.API name: index
- 
indicesBoostBoosts the _score of documents from specified indices.API name: indices_boost
- 
lenientAPI name:lenient
- 
maxConcurrentShardRequestsAPI name:max_concurrent_shard_requests
- 
minScoreMinimum _score for matching documents. Documents with a lower _score are not included in search results and results collected by aggregations.API name: min_score
- 
pitLimits the search to a point in time (PIT). If you provide a PIT, you cannot specify an <index> in the request path.API name: pit
- 
postFilterAPI name:post_filter
- 
preFilterShardSizeAPI name:pre_filter_shard_size
- 
preferenceAPI name:preference
- 
profileAPI name:profile
- 
qAPI name:q
- 
queryDefines the search definition using the Query DSL.API name: query
- 
requestCacheAPI name:request_cache
- 
rescoreAPI name:rescore
- 
routingAPI name:routing
- 
runtimeMappingsDefines one or more runtime fields in the search request. These fields take precedence over mapped fields with the same name.API name: runtime_mappings
- 
scriptFieldsRetrieve a script evaluation (based on different fields) for each hit.API name: script_fields
- 
scrollAPI name:scroll
- 
searchAfterAPI name:search_after
- 
searchTypeAPI name:search_type
- 
seqNoPrimaryTermIf true, returns sequence number and primary term of the last modification of each hit. See Optimistic concurrency control.API name: seq_no_primary_term
- 
sizeThe number of hits to return. By default, you cannot page through more than 10,000 hits using the from and size parameters. To page through more hits, use the search_after parameter.API name: size
- 
sliceAPI name:slice
- 
sortAPI name:sort
- 
statsStats groups to associate with the search. Each group maintains a statistics aggregation for its associated searches. You can retrieve these stats using the indices stats API.API name: stats
- 
storedFieldsList of stored fields to return as part of a hit. If no fields are specified, no stored fields are included in the response. If this field is specified, the _source parameter defaults to false. You can pass _source: true to return both source fields and stored fields in the search response.API name: stored_fields
- 
suggestAPI name:suggest
- 
terminateAfterMaximum number of documents to collect for each shard. If a query reaches this limit, Elasticsearch terminates the query early. Elasticsearch collects documents before sorting. Defaults to 0, which does not terminate query execution early.API name: terminate_after
- 
timeoutSpecifies the period of time to wait for a response from each shard. If no response is received before the timeout expires, the request fails and returns an error. Defaults to no timeout.API name: timeout
- 
trackScoresIf true, calculate and return document scores, even if the scores are not used for sorting.API name: track_scores
- 
trackTotalHitsNumber of hits matching the query to count accurately. If true, the exact number of hits is returned at the cost of some performance. If false, the response does not include the total number of hits matching the query. Defaults to 10,000 hits.API name: track_total_hits
- 
versionIf true, returns document version as part of a hit.API name: version
- 
waitForCheckpointsA comma separated list of checkpoints. When configured, the search API will only be executed on a shard after the relevant checkpoint has become visible for search. Defaults to an empty list which will cause Elasticsearch to immediately execute the search.API name: wait_for_checkpoints
- 
serializeSerialize this object to JSON.- Specified by:
- serializein interface- JsonpSerializable
 
- 
serializeInternal
- 
setupFleetSearchRequestDeserializerprotected static void setupFleetSearchRequestDeserializer(ObjectDeserializer<FleetSearchRequest.Builder> op) 
- 
createSearchEndpointpublic static <TDocument> Endpoint<FleetSearchRequest,FleetSearchResponse<TDocument>, createSearchEndpointErrorResponse> (JsonpDeserializer<TDocument> tDocumentDeserializer) Create an "fleet.search" endpoint.
 
-