Class PercolateQuery.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<BuilderT>
co.elastic.clients.elasticsearch._types.query_dsl.QueryBase.AbstractBuilder<PercolateQuery.Builder>
co.elastic.clients.elasticsearch._types.query_dsl.PercolateQuery.Builder
- All Implemented Interfaces:
WithJson<PercolateQuery.Builder>,ObjectBuilder<PercolateQuery>
- Enclosing class:
- PercolateQuery
public static class PercolateQuery.Builder
extends QueryBase.AbstractBuilder<PercolateQuery.Builder>
implements ObjectBuilder<PercolateQuery>
Builder for
PercolateQuery.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aPercolateQuery.final PercolateQuery.BuilderThe source of the document being percolated.final PercolateQuery.BuilderAn array of sources of the documents being percolated.final PercolateQuery.BuilderAn array of sources of the documents being percolated.final PercolateQuery.BuilderRequired - Field that holds the indexed queries.final PercolateQuery.BuilderThe ID of a stored document to percolate.final PercolateQuery.BuilderThe index of a stored document to percolate.final PercolateQuery.BuilderThe suffix used for the_percolator_document_slotfield when multiplepercolatequeries are specified.final PercolateQuery.Builderpreference(String value) Preference used to fetch document to percolate.final PercolateQuery.BuilderRouting used to fetch document to percolate.protected PercolateQuery.Builderself()final PercolateQuery.BuilderThe expected version of a stored document to percolate.Methods inherited from class co.elastic.clients.elasticsearch._types.query_dsl.QueryBase.AbstractBuilder
boost, queryNameMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
document
The source of the document being percolated.API name:
document -
documents
An array of sources of the documents being percolated.API name:
documentsAdds all elements of
listtodocuments. -
documents
An array of sources of the documents being percolated.API name:
documentsAdds one or more values to
documents. -
field
Required - Field that holds the indexed queries. The field must use thepercolatormapping type.API name:
field -
id
The ID of a stored document to percolate.API name:
id -
index
The index of a stored document to percolate.API name:
index -
name
The suffix used for the_percolator_document_slotfield when multiplepercolatequeries are specified.API name:
name -
preference
Preference used to fetch document to percolate.API name:
preference -
routing
Routing used to fetch document to percolate.API name:
routing -
version
The expected version of a stored document to percolate.API name:
version -
self
- Specified by:
selfin classQueryBase.AbstractBuilder<PercolateQuery.Builder>
-
build
Builds aPercolateQuery.- Specified by:
buildin interfaceObjectBuilder<PercolateQuery>- Throws:
NullPointerException- if some of the required fields are null.
-