Package org.elasticsearch.index.query
Class RankFeatureQueryBuilder
java.lang.Object
org.elasticsearch.index.query.AbstractQueryBuilder<RankFeatureQueryBuilder>
org.elasticsearch.index.query.RankFeatureQueryBuilder
- All Implemented Interfaces:
NamedWriteable,Writeable,ToXContent,ToXContentObject,QueryBuilder,Rewriteable<QueryBuilder>
public final class RankFeatureQueryBuilder extends AbstractQueryBuilder<RankFeatureQueryBuilder>
Query to run on a [rank_feature] field.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRankFeatureQueryBuilder.ScoreFunctionScoring function for a [rank_feature] field.Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V extends java.lang.Object>, Writeable.Writer<V extends java.lang.Object> -
Field Summary
Fields Modifier and Type Field Description static java.lang.StringNAMEstatic ConstructingObjectParser<RankFeatureQueryBuilder,java.lang.Void>PARSERFields inherited from class org.elasticsearch.index.query.AbstractQueryBuilder
boost, BOOST_FIELD, DEFAULT_BOOST, NAME_FIELD, queryName -
Constructor Summary
Constructors Constructor Description RankFeatureQueryBuilder(java.lang.String field, RankFeatureQueryBuilder.ScoreFunction scoreFunction)RankFeatureQueryBuilder(StreamInput in) -
Method Summary
Modifier and Type Method Description protected booleandoEquals(RankFeatureQueryBuilder other)protected intdoHashCode()protected org.apache.lucene.search.QuerydoToQuery(QueryShardContext context)protected voiddoWriteTo(StreamOutput out)protected voiddoXContent(XContentBuilder builder, ToXContent.Params params)java.lang.StringgetWriteableName()Methods inherited from class org.elasticsearch.index.query.AbstractQueryBuilder
addValidationError, boost, boost, checkNegativeBoost, declareStandardFields, doRewrite, equals, extractInnerHitBuilders, getName, hashCode, parseInnerQueryBuilder, printBoostAndQueryName, queryName, queryName, requireValue, rewrite, throwParsingExceptionOnMultipleFields, toQuery, toString, toXContent, writeTo
-
Field Details
-
PARSER
-
NAME
public static final java.lang.String NAME- See Also:
- Constant Field Values
-
-
Constructor Details
-
RankFeatureQueryBuilder
public RankFeatureQueryBuilder(java.lang.String field, RankFeatureQueryBuilder.ScoreFunction scoreFunction)- Parameters:
field- The field name.scoreFunction- Scoring function for the rank_feature field.
-
RankFeatureQueryBuilder
- Throws:
java.io.IOException
-
-
Method Details
-
getWriteableName
public java.lang.String getWriteableName() -
doWriteTo
- Specified by:
doWriteToin classAbstractQueryBuilder<RankFeatureQueryBuilder>- Throws:
java.io.IOException
-
doXContent
protected void doXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException- Specified by:
doXContentin classAbstractQueryBuilder<RankFeatureQueryBuilder>- Throws:
java.io.IOException
-
doToQuery
protected org.apache.lucene.search.Query doToQuery(QueryShardContext context) throws java.io.IOException- Specified by:
doToQueryin classAbstractQueryBuilder<RankFeatureQueryBuilder>- Throws:
java.io.IOException
-
doEquals
- Specified by:
doEqualsin classAbstractQueryBuilder<RankFeatureQueryBuilder>
-
doHashCode
protected int doHashCode()- Specified by:
doHashCodein classAbstractQueryBuilder<RankFeatureQueryBuilder>
-