Class RetrieverBuilder

java.lang.Object
org.elasticsearch.search.retriever.RetrieverBuilder
All Implemented Interfaces:
ToXContent
Direct Known Subclasses:
KnnRetrieverBuilder, StandardRetrieverBuilder

public abstract class RetrieverBuilder extends Object implements ToXContent
A retriever represents an API element that returns an ordered list of top documents. These can be obtained from a query, from another retriever, etc. Internally, a RetrieverBuilder is just a wrapper for other search elements that are extracted into a SearchSourceBuilder. The advantage retrievers have is in the API they appear as a tree-like structure enabling easier reasoning about what a search does. This is the base class for all other retrievers. This class does not support serialization and is expected to be fully extracted to a SearchSourceBuilder prior to any transport calls.