public class PercolateQueryBuilder extends org.elasticsearch.index.query.AbstractQueryBuilder<PercolateQueryBuilder>
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
NAME |
| Constructor and Description |
|---|
PercolateQueryBuilder(java.lang.String field,
java.lang.String documentType,
org.elasticsearch.common.bytes.BytesReference document)
Deprecated.
use
PercolateQueryBuilder(String, String, BytesReference, XContentType) with the document content type to avoid
autodetection |
PercolateQueryBuilder(java.lang.String field,
java.lang.String documentType,
org.elasticsearch.common.bytes.BytesReference document,
org.elasticsearch.common.xcontent.XContentType documentXContentType) |
PercolateQueryBuilder(java.lang.String field,
java.lang.String documentType,
java.lang.String indexedDocumentIndex,
java.lang.String indexedDocumentType,
java.lang.String indexedDocumentId,
java.lang.String indexedDocumentRouting,
java.lang.String indexedDocumentPreference,
java.lang.Long indexedDocumentVersion) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
doEquals(PercolateQueryBuilder other) |
protected int |
doHashCode() |
protected org.elasticsearch.index.query.QueryBuilder |
doRewrite(org.elasticsearch.index.query.QueryRewriteContext queryShardContext) |
protected org.apache.lucene.search.Query |
doToQuery(org.elasticsearch.index.query.QueryShardContext context) |
protected void |
doWriteTo(org.elasticsearch.common.io.stream.StreamOutput out) |
protected void |
doXContent(org.elasticsearch.common.xcontent.XContentBuilder builder,
org.elasticsearch.common.xcontent.ToXContent.Params params) |
static java.util.Optional<PercolateQueryBuilder> |
fromXContent(org.elasticsearch.index.query.QueryParseContext parseContext) |
org.elasticsearch.common.bytes.BytesReference |
getDocument() |
java.lang.String |
getDocumentType() |
java.lang.String |
getField() |
java.lang.String |
getWriteableName() |
addValidationError, boost, boost, convertToBytesRefIfString, convertToStringIfBytesRef, declareStandardFields, equals, extractInnerHitBuilders, getName, hashCode, printBoostAndQueryName, queryName, queryName, readQueries, requireValue, rewrite, throwParsingExceptionOnMultipleFields, toFilter, toQueries, toQuery, toXContent, writeQueries, writeTobuildAsBytes, buildAsBytes, toString, toStringpublic static final java.lang.String NAME
@Deprecated
public PercolateQueryBuilder(java.lang.String field,
java.lang.String documentType,
org.elasticsearch.common.bytes.BytesReference document)
PercolateQueryBuilder(String, String, BytesReference, XContentType) with the document content type to avoid
autodetectionpublic PercolateQueryBuilder(java.lang.String field,
java.lang.String documentType,
org.elasticsearch.common.bytes.BytesReference document,
org.elasticsearch.common.xcontent.XContentType documentXContentType)
public PercolateQueryBuilder(java.lang.String field,
java.lang.String documentType,
java.lang.String indexedDocumentIndex,
java.lang.String indexedDocumentType,
java.lang.String indexedDocumentId,
java.lang.String indexedDocumentRouting,
java.lang.String indexedDocumentPreference,
java.lang.Long indexedDocumentVersion)
protected void doWriteTo(org.elasticsearch.common.io.stream.StreamOutput out)
throws java.io.IOException
doWriteTo in class org.elasticsearch.index.query.AbstractQueryBuilder<PercolateQueryBuilder>java.io.IOExceptionprotected void doXContent(org.elasticsearch.common.xcontent.XContentBuilder builder,
org.elasticsearch.common.xcontent.ToXContent.Params params)
throws java.io.IOException
doXContent in class org.elasticsearch.index.query.AbstractQueryBuilder<PercolateQueryBuilder>java.io.IOExceptionpublic static java.util.Optional<PercolateQueryBuilder> fromXContent(org.elasticsearch.index.query.QueryParseContext parseContext) throws java.io.IOException
java.io.IOExceptionprotected boolean doEquals(PercolateQueryBuilder other)
doEquals in class org.elasticsearch.index.query.AbstractQueryBuilder<PercolateQueryBuilder>protected int doHashCode()
doHashCode in class org.elasticsearch.index.query.AbstractQueryBuilder<PercolateQueryBuilder>public java.lang.String getWriteableName()
protected org.elasticsearch.index.query.QueryBuilder doRewrite(org.elasticsearch.index.query.QueryRewriteContext queryShardContext)
throws java.io.IOException
doRewrite in class org.elasticsearch.index.query.AbstractQueryBuilder<PercolateQueryBuilder>java.io.IOExceptionprotected org.apache.lucene.search.Query doToQuery(org.elasticsearch.index.query.QueryShardContext context)
throws java.io.IOException
doToQuery in class org.elasticsearch.index.query.AbstractQueryBuilder<PercolateQueryBuilder>java.io.IOExceptionpublic java.lang.String getField()
public java.lang.String getDocumentType()
public org.elasticsearch.common.bytes.BytesReference getDocument()