Class SearchModelsRequest
- All Implemented Interfaces:
ToCopyableBuilder<SearchModelsRequest.Builder,SearchModelsRequest>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.opensearch.client.opensearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Endpoint<SearchModelsRequest, SearchModelsResponse, ErrorResponse> Endpoint "knn.search_models". -
Method Summary
Modifier and TypeMethodDescriptionfinal BooleanWhether to ignore if a wildcard indexes expression resolves into no concrete indexes.final BooleanIndicate if an error should be returned if there is a partial search failure or timeout.final Stringanalyzer()The analyzer to use for the query string.final BooleanSpecify whether wildcard and prefix queries should be analyzed.protected voidapplyQueryParameters(Map<String, String> params) final IntegerThe number of shard results that should be reduced at once on the coordinating node.static SearchModelsRequest.Builderbuilder()final BooleanIndicates whether network round-trips should be minimized as part of cross-cluster search requests execution.final OperatorThe default operator for query string query (AND or OR).final Stringdf()The field to use as default where no field prefix is given in the query string.A comma-separated list of fields to return as the docvalue representation of a field for each hit.booleanfinal List<ExpandWildcard> Whether to expand wildcard expression to concrete indexes that are open, closed or both.final Booleanexplain()Specify whether to return detailed information about score computation as part of a hit.final Integerfrom()Starting offset.inthashCode()final BooleanWhether specified concrete, expanded or aliased indexes should be ignored when throttled.final BooleanWhether specified concrete indexes should be ignored when unavailable (missing or closed).final Booleanlenient()Specify whether format-based query failures (such as providing text to a numeric field) should be ignored.final IntegerThe number of concurrent shard requests per node this search executes concurrently.static SearchModelsRequestfinal StringSpecify the node or shard the operation should be performed on.final IntegerThreshold that enforces a pre-filter round-trip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold.final Stringq()Query in the Lucene query string syntax.final BooleanSpecify if request cache should be used for this request or not, defaults to index level setting.final BooleanIndicates whetherhits.totalshould be rendered as an integer or an object in the rest search response.routing()A comma-separated list of specific routing values.final Timescroll()Specify how long a consistent view of the index should be maintained for scrolled search.final SearchTypeSearch operation type.final BooleanSpecify whether to return sequence number and primary term of the last modification of each hit.final Integersize()Number of hits to return.sort()A comma-separated list of <field>:<direction> pairs.source()Set totrueorfalseto return the_sourcefield or not, or a list of fields to return.List of fields to exclude from the returned_sourcefield.List of fields to extract and return from the_sourcefield.stats()Specific 'tag' of the request for logging and statistical purposes.A comma-separated list of stored fields to return.final StringSpecify which field to use for suggestions.final SuggestModeSpecify suggest mode.final IntegerHow many suggestions to return in response.final StringThe source text for which the suggestions should be returned.final IntegerThe maximum number of documents to collect for each shard, upon reaching which the query execution will terminate early.final Timetimeout()Operation timeout.Create a new builderToCopyableBuilderthat is initialised with the current state of this object.final BooleanWhether to calculate and return scores even if they are not used for sorting.final BooleanIndicate if the number of documents that match the query should be tracked.final Booleanversion()Whether to return document version as part of a hit.Methods inherited from class org.opensearch.client.opensearch._types.RequestBase
errorTrace, humanMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.ToCopyableBuilder
copy
-
Field Details
-
_ENDPOINT
Endpoint "knn.search_models".
-
-
Method Details
-
of
public static SearchModelsRequest of(Function<SearchModelsRequest.Builder, ObjectBuilder<SearchModelsRequest>> fn) -
allowNoIndices
Whether to ignore if a wildcard indexes expression resolves into no concrete indexes. (This includes_allstring or when no indexes have been specified).API name:
allow_no_indices -
allowPartialSearchResults
Indicate if an error should be returned if there is a partial search failure or timeout.API name:
allow_partial_search_results -
analyzeWildcard
Specify whether wildcard and prefix queries should be analyzed.API name:
analyze_wildcard -
analyzer
The analyzer to use for the query string.API name:
analyzer -
batchedReduceSize
The number of shard results that should be reduced at once on the coordinating node. This value should be used as a protection mechanism to reduce the memory overhead per search request if the potential number of shards in the request can be large.API name:
batched_reduce_size -
ccsMinimizeRoundtrips
Indicates whether network round-trips should be minimized as part of cross-cluster search requests execution.API name:
ccs_minimize_roundtrips -
defaultOperator
The default operator for query string query (AND or OR).API name:
default_operator -
df
The field to use as default where no field prefix is given in the query string.API name:
df -
docvalueFields
A comma-separated list of fields to return as the docvalue representation of a field for each hit.API name:
docvalue_fields -
expandWildcards
Whether to expand wildcard expression to concrete indexes that are open, closed or both.API name:
expand_wildcards -
explain
Specify whether to return detailed information about score computation as part of a hit.API name:
explain -
from
Starting offset.API name:
from -
ignoreThrottled
Whether specified concrete, expanded or aliased indexes should be ignored when throttled.API name:
ignore_throttled -
lenient
Specify whether format-based query failures (such as providing text to a numeric field) should be ignored.API name:
lenient -
maxConcurrentShardRequests
The number of concurrent shard requests per node this search executes concurrently. This value should be used to limit the impact of the search on the cluster in order to limit the number of concurrent shard requests.API name:
max_concurrent_shard_requests -
preFilterShardSize
Threshold that enforces a pre-filter round-trip to prefilter search shards based on query rewriting if the number of shards the search request expands to exceeds the threshold. This filter round-trip can limit the number of shards significantly if for instance a shard can not match any documents based on its rewrite method, that is if date filters are mandatory to match but the shard bounds and the query are disjoint.API name:
pre_filter_shard_size -
preference
Specify the node or shard the operation should be performed on.API name:
preference -
q
Query in the Lucene query string syntax.API name:
q -
requestCache
Specify if request cache should be used for this request or not, defaults to index level setting.API name:
request_cache -
restTotalHitsAsInt
Indicates whetherhits.totalshould be rendered as an integer or an object in the rest search response.API name:
rest_total_hits_as_int -
routing
A comma-separated list of specific routing values.API name:
routing -
scroll
Specify how long a consistent view of the index should be maintained for scrolled search.API name:
scroll -
searchType
Search operation type.API name:
search_type -
seqNoPrimaryTerm
Specify whether to return sequence number and primary term of the last modification of each hit.API name:
seq_no_primary_term -
size
Number of hits to return.API name:
size -
sort
A comma-separated list of <field>:<direction> pairs.API name:
sort -
source
Set totrueorfalseto return the_sourcefield or not, or a list of fields to return.API name:
_source -
sourceExcludes
List of fields to exclude from the returned_sourcefield.API name:
_source_excludes -
sourceIncludes
List of fields to extract and return from the_sourcefield.API name:
_source_includes -
stats
Specific 'tag' of the request for logging and statistical purposes.API name:
stats -
storedFields
A comma-separated list of stored fields to return.API name:
stored_fields -
suggestField
Specify which field to use for suggestions.API name:
suggest_field -
suggestMode
Specify suggest mode.API name:
suggest_mode -
suggestSize
How many suggestions to return in response.API name:
suggest_size -
suggestText
The source text for which the suggestions should be returned.API name:
suggest_text -
terminateAfter
The maximum number of documents to collect for each shard, upon reaching which the query execution will terminate early.API name:
terminate_after -
timeout
Operation timeout.API name:
timeout -
trackScores
Whether to calculate and return scores even if they are not used for sorting.API name:
track_scores -
trackTotalHits
Indicate if the number of documents that match the query should be tracked.API name:
track_total_hits -
version
Whether to return document version as part of a hit.API name:
version -
toBuilder
Description copied from interface:ToCopyableBuilderCreate a new builderToCopyableBuilderthat is initialised with the current state of this object.- Specified by:
toBuilderin interfaceToCopyableBuilder<SearchModelsRequest.Builder,SearchModelsRequest> - Returns:
- a new builder instance.
-
builder
-
applyQueryParameters
- Overrides:
applyQueryParametersin classRequestBase
-
hashCode
public int hashCode() -
equals
-