Package org.opensearch.index.query
Class RankFeatureQueryBuilder
java.lang.Object
org.opensearch.index.query.AbstractQueryBuilder<RankFeatureQueryBuilder>
org.opensearch.index.query.RankFeatureQueryBuilder
- All Implemented Interfaces:
NamedWriteable,Writeable,ToXContent,ToXContentObject,QueryBuilder,Rewriteable<QueryBuilder>
Query to run on a [rank_feature] field.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classScoring function for a [rank_feature] field.Nested classes/interfaces inherited from interface org.opensearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsNested classes/interfaces inherited from interface org.opensearch.common.io.stream.Writeable
Writeable.Reader<V extends Object>, Writeable.Writer<V extends Object> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final ConstructingObjectParser<RankFeatureQueryBuilder,Void> Fields inherited from class org.opensearch.index.query.AbstractQueryBuilder
boost, BOOST_FIELD, DEFAULT_BOOST, NAME_FIELD, queryNameFields inherited from interface org.opensearch.index.query.Rewriteable
MAX_REWRITE_ROUNDSFields inherited from interface org.opensearch.common.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionRankFeatureQueryBuilder(String field, RankFeatureQueryBuilder.ScoreFunction scoreFunction) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleandoEquals(RankFeatureQueryBuilder other) protected intprotected org.apache.lucene.search.QuerydoToQuery(QueryShardContext context) protected voiddoWriteTo(StreamOutput out) protected voiddoXContent(XContentBuilder builder, ToXContent.Params params) Methods inherited from class org.opensearch.index.query.AbstractQueryBuilder
addValidationError, boost, boost, checkNegativeBoost, declareStandardFields, doRewrite, equals, extractInnerHitBuilders, getName, hashCode, parseInnerQueryBuilder, printBoostAndQueryName, queryName, queryName, requireValue, rewrite, throwParsingExceptionOnMultipleFields, toQuery, toString, toXContent, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.opensearch.common.xcontent.ToXContentObject
isFragment
-
Field Details
-
PARSER
-
NAME
- See Also:
-
-
Constructor Details
-
RankFeatureQueryBuilder
- Parameters:
field- The field name.scoreFunction- Scoring function for the rank_feature field.
-
RankFeatureQueryBuilder
- Throws:
IOException
-
-
Method Details
-
getWriteableName
-
doWriteTo
- Specified by:
doWriteToin classAbstractQueryBuilder<RankFeatureQueryBuilder>- Throws:
IOException
-
doXContent
- Specified by:
doXContentin classAbstractQueryBuilder<RankFeatureQueryBuilder>- Throws:
IOException
-
doToQuery
- Specified by:
doToQueryin classAbstractQueryBuilder<RankFeatureQueryBuilder>- Throws:
IOException
-
doEquals
- Specified by:
doEqualsin classAbstractQueryBuilder<RankFeatureQueryBuilder>
-
doHashCode
protected int doHashCode()- Specified by:
doHashCodein classAbstractQueryBuilder<RankFeatureQueryBuilder>
-