public class PercolatorQueryBuilder extends AbstractQueryBuilder<PercolatorQueryBuilder>
Writeable.Reader<R>
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
NAME |
boost, BOOST_FIELD, DEFAULT_BOOST, NAME_FIELD, queryName
EMPTY_PARAMS
Constructor and Description |
---|
PercolatorQueryBuilder(java.lang.String documentType,
BytesReference document) |
PercolatorQueryBuilder(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(PercolatorQueryBuilder other)
Indicates whether some other
QueryBuilder object of the same type is "equal to" this one. |
protected int |
doHashCode() |
protected PercolatorQueryBuilder |
doReadFrom(StreamInput in) |
protected QueryBuilder<?> |
doRewrite(QueryRewriteContext queryShardContext) |
protected org.apache.lucene.search.Query |
doToQuery(QueryShardContext context) |
protected void |
doWriteTo(StreamOutput out) |
protected void |
doXContent(XContentBuilder builder,
ToXContent.Params params) |
BytesReference |
getDocument() |
java.lang.String |
getDocumentType() |
java.lang.String |
getWriteableName()
Returns the name of the writeable object
|
addValidationError, boost, boost, convertToBytesRefIfString, convertToStringIfBytesRef, equals, getName, hashCode, printBoostAndQueryName, queryName, queryName, readFrom, readQueries, rewrite, toFilter, toQueries, toQuery, toXContent, writeQueries, writeTo
buildAsBytes, buildAsBytes, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
rewriteQuery
public static final java.lang.String NAME
public PercolatorQueryBuilder(java.lang.String documentType, BytesReference document)
public PercolatorQueryBuilder(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 doXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
doXContent
in class AbstractQueryBuilder<PercolatorQueryBuilder>
java.io.IOException
protected PercolatorQueryBuilder doReadFrom(StreamInput in) throws java.io.IOException
doReadFrom
in class AbstractQueryBuilder<PercolatorQueryBuilder>
java.io.IOException
protected void doWriteTo(StreamOutput out) throws java.io.IOException
doWriteTo
in class AbstractQueryBuilder<PercolatorQueryBuilder>
java.io.IOException
protected boolean doEquals(PercolatorQueryBuilder other)
AbstractQueryBuilder
QueryBuilder
object of the same type is "equal to" this one.doEquals
in class AbstractQueryBuilder<PercolatorQueryBuilder>
protected int doHashCode()
doHashCode
in class AbstractQueryBuilder<PercolatorQueryBuilder>
public java.lang.String getWriteableName()
NamedWriteable
protected QueryBuilder<?> doRewrite(QueryRewriteContext queryShardContext) throws java.io.IOException
doRewrite
in class AbstractQueryBuilder<PercolatorQueryBuilder>
java.io.IOException
protected org.apache.lucene.search.Query doToQuery(QueryShardContext context) throws java.io.IOException
doToQuery
in class AbstractQueryBuilder<PercolatorQueryBuilder>
java.io.IOException
public java.lang.String getDocumentType()
public BytesReference getDocument()