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.Builder
The source of the document being percolated.final PercolateQuery.Builder
An array of sources of the documents being percolated.final PercolateQuery.Builder
An array of sources of the documents being percolated.final PercolateQuery.Builder
Required - Field that holds the indexed queries.final PercolateQuery.Builder
The ID of a stored document to percolate.final PercolateQuery.Builder
The index of a stored document to percolate.final PercolateQuery.Builder
The suffix used for the_percolator_document_slot
field when multiplepercolate
queries are specified.final PercolateQuery.Builder
preference
(String value) Preference used to fetch document to percolate.final PercolateQuery.Builder
Routing used to fetch document to percolate.protected PercolateQuery.Builder
self()
final PercolateQuery.Builder
The expected version of a stored document to percolate.Methods inherited from class co.elastic.clients.elasticsearch._types.query_dsl.QueryBase.AbstractBuilder
boost, queryName
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods 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:
documents
Adds all elements of
list
todocuments
. -
documents
An array of sources of the documents being percolated.API name:
documents
Adds one or more values to
documents
. -
field
Required - Field that holds the indexed queries. The field must use thepercolator
mapping 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_slot
field when multiplepercolate
queries 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:
self
in classQueryBase.AbstractBuilder<PercolateQuery.Builder>
-
build
Builds aPercolateQuery
.- Specified by:
build
in interfaceObjectBuilder<PercolateQuery>
- Throws:
NullPointerException
- if some of the required fields are null.
-