Class StandardRetriever
java.lang.Object
co.elastic.clients.elasticsearch._types.RetrieverBase
co.elastic.clients.elasticsearch._types.StandardRetriever
- All Implemented Interfaces:
RetrieverVariant,JsonpSerializable
@JsonpDeserializable
public class StandardRetriever
extends RetrieverBase
implements RetrieverVariant
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RetrieverBase
RetrieverBase.AbstractBuilder<BuilderT extends RetrieverBase.AbstractBuilder<BuilderT>> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<StandardRetriever>Json deserializer forStandardRetriever -
Method Summary
Modifier and TypeMethodDescriptionRetriever variant kind.final FieldCollapsecollapse()Collapses the top documents by a specified key into a single top document per key.static StandardRetrieverfinal Queryquery()Defines a query to retrieve a set of top documents.final List<FieldValue>Defines a search after object parameter used for pagination.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal List<SortOptions>sort()A sort object that that specifies the order of matching documents.final IntegerMaximum number of documents to collect for each shard.Methods inherited from class co.elastic.clients.elasticsearch._types.RetrieverBase
filter, minScore, name, serialize, setupRetrieverBaseDeserializer, toStringMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface co.elastic.clients.elasticsearch._types.RetrieverVariant
_toRetriever
-
Field Details
-
_DESERIALIZER
Json deserializer forStandardRetriever
-
-
Method Details
-
of
public static StandardRetriever of(Function<StandardRetriever.Builder, ObjectBuilder<StandardRetriever>> fn) -
_retrieverKind
Retriever variant kind.- Specified by:
_retrieverKindin interfaceRetrieverVariant
-
query
Defines a query to retrieve a set of top documents.API name:
query -
searchAfter
Defines a search after object parameter used for pagination.API name:
search_after -
terminateAfter
Maximum number of documents to collect for each shard.API name:
terminate_after -
sort
A sort object that that specifies the order of matching documents.API name:
sort -
collapse
Collapses the top documents by a specified key into a single top document per key.API name:
collapse -
serializeInternal
- Overrides:
serializeInternalin classRetrieverBase
-
setupStandardRetrieverDeserializer
protected static void setupStandardRetrieverDeserializer(ObjectDeserializer<StandardRetriever.Builder> op)
-