Module org.elasticsearch.xcore
Class WeightedTokensQueryBuilder
java.lang.Object
org.elasticsearch.index.query.AbstractQueryBuilder<WeightedTokensQueryBuilder>
org.elasticsearch.xpack.core.ml.search.WeightedTokensQueryBuilder
- All Implemented Interfaces:
NamedWriteable,VersionedNamedWriteable,Writeable,QueryBuilder,Rewriteable<QueryBuilder>,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
@Deprecated
public class WeightedTokensQueryBuilder
extends AbstractQueryBuilder<WeightedTokensQueryBuilder>
Deprecated.
Replaced by sparse_vector query
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringDeprecated.static final org.elasticsearch.xcontent.ParseFieldDeprecated.static final org.elasticsearch.xcontent.ParseFieldDeprecated.static final StringDeprecated.Fields inherited from class org.elasticsearch.index.query.AbstractQueryBuilder
boost, BOOST_FIELD, DEFAULT_BOOST, NAME_FIELD, queryNameFields inherited from interface org.elasticsearch.index.query.Rewriteable
MAX_REWRITE_ROUNDSFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionWeightedTokensQueryBuilder(String fieldName, List<WeightedToken> tokens) Deprecated.WeightedTokensQueryBuilder(String fieldName, List<WeightedToken> tokens, TokenPruningConfig tokenPruningConfig) Deprecated.Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanDeprecated.protected intDeprecated.protected org.apache.lucene.search.QuerydoToQuery(SearchExecutionContext context) Deprecated.protected voiddoWriteTo(StreamOutput out) Deprecated.protected voiddoXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) Deprecated.static WeightedTokensQueryBuilderfromXContent(org.elasticsearch.xcontent.XContentParser parser) Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Methods inherited from class org.elasticsearch.index.query.AbstractQueryBuilder
addValidationError, boost, boost, boostAndQueryNameToXContent, checkNegativeBoost, declareStandardFields, doCoordinatorRewrite, doIndexMetadataRewrite, doInnerHitsRewrite, doRewrite, doSearchRewrite, equals, extractInnerHitBuilders, getMaxNestedDepth, getName, hashCode, parseInnerQueryBuilder, parseTopLevelQuery, parseTopLevelQuery, printBoostAndQueryName, queryName, queryName, readQueries, requireValue, rewrite, setMaxNestedDepth, throwParsingExceptionOnMultipleFields, toQuery, toString, toXContent, writeQueries, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragmentMethods inherited from interface org.elasticsearch.common.io.stream.VersionedNamedWriteable
supportsVersion
-
Field Details
-
NAME
Deprecated.- See Also:
-
TOKENS_FIELD
public static final org.elasticsearch.xcontent.ParseField TOKENS_FIELDDeprecated. -
PRUNING_CONFIG
public static final org.elasticsearch.xcontent.ParseField PRUNING_CONFIGDeprecated. -
WEIGHTED_TOKENS_DEPRECATION_MESSAGE
Deprecated.- See Also:
-
-
Constructor Details
-
WeightedTokensQueryBuilder
Deprecated. -
WeightedTokensQueryBuilder
public WeightedTokensQueryBuilder(String fieldName, List<WeightedToken> tokens, @Nullable TokenPruningConfig tokenPruningConfig) Deprecated. -
WeightedTokensQueryBuilder
Deprecated.- Throws:
IOException
-
-
Method Details
-
getFieldName
Deprecated. -
getTokens
Deprecated. -
doWriteTo
Deprecated.- Specified by:
doWriteToin classAbstractQueryBuilder<WeightedTokensQueryBuilder>- Throws:
IOException
-
doXContent
protected void doXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException Deprecated.- Specified by:
doXContentin classAbstractQueryBuilder<WeightedTokensQueryBuilder>- Throws:
IOException
-
doToQuery
protected org.apache.lucene.search.Query doToQuery(SearchExecutionContext context) throws IOException Deprecated.- Specified by:
doToQueryin classAbstractQueryBuilder<WeightedTokensQueryBuilder>- Throws:
IOException
-
doEquals
Deprecated.- Specified by:
doEqualsin classAbstractQueryBuilder<WeightedTokensQueryBuilder>
-
doHashCode
protected int doHashCode()Deprecated.- Specified by:
doHashCodein classAbstractQueryBuilder<WeightedTokensQueryBuilder>
-
getWriteableName
Deprecated. -
getMinimalSupportedVersion
Deprecated. -
fromXContent
public static WeightedTokensQueryBuilder fromXContent(org.elasticsearch.xcontent.XContentParser parser) throws IOException Deprecated.- Throws:
IOException
-