Package org.opensearch.index.query
Class RankFeatureQueryBuilder
java.lang.Object
org.opensearch.index.query.AbstractQueryBuilder<RankFeatureQueryBuilder>
org.opensearch.index.query.RankFeatureQueryBuilder
- All Implemented Interfaces:
org.opensearch.core.common.io.stream.NamedWriteable,org.opensearch.core.common.io.stream.Writeable,org.opensearch.core.xcontent.ToXContent,org.opensearch.core.xcontent.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.core.xcontent.ToXContent
org.opensearch.core.xcontent.ToXContent.DelegatingMapParams, org.opensearch.core.xcontent.ToXContent.MapParams, org.opensearch.core.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.opensearch.core.common.io.stream.Writeable
org.opensearch.core.common.io.stream.Writeable.Reader<V>, org.opensearch.core.common.io.stream.Writeable.WriteableRegistry, org.opensearch.core.common.io.stream.Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final org.opensearch.core.xcontent.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.core.xcontent.ToXContent
EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionRankFeatureQueryBuilder(String field, RankFeatureQueryBuilder.ScoreFunction scoreFunction) RankFeatureQueryBuilder(org.opensearch.core.common.io.stream.StreamInput in) -
Method Summary
Modifier and TypeMethodDescriptionprotected booleandoEquals(RankFeatureQueryBuilder other) protected intprotected org.apache.lucene.search.QuerydoToQuery(QueryShardContext context) protected voiddoWriteTo(org.opensearch.core.common.io.stream.StreamOutput out) protected voiddoXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.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.index.query.QueryBuilder
visitMethods inherited from interface org.opensearch.core.xcontent.ToXContentObject
isFragment
-
Field Details
-
PARSER
public static final org.opensearch.core.xcontent.ConstructingObjectParser<RankFeatureQueryBuilder,Void> PARSER -
NAME
- See Also:
-
-
Constructor Details
-
RankFeatureQueryBuilder
- Parameters:
field- The field name.scoreFunction- Scoring function for the rank_feature field.
-
RankFeatureQueryBuilder
public RankFeatureQueryBuilder(org.opensearch.core.common.io.stream.StreamInput in) throws IOException - Throws:
IOException
-
-
Method Details
-
getWriteableName
-
doWriteTo
- Specified by:
doWriteToin classAbstractQueryBuilder<RankFeatureQueryBuilder>- Throws:
IOException
-
doXContent
protected void doXContent(org.opensearch.core.xcontent.XContentBuilder builder, org.opensearch.core.xcontent.ToXContent.Params params) throws IOException - 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>
-