Module org.elasticsearch.xcore
Class TextExpansionQueryBuilder
java.lang.Object
org.elasticsearch.index.query.AbstractQueryBuilder<TextExpansionQueryBuilder>
org.elasticsearch.xpack.core.ml.search.TextExpansionQueryBuilder
- All Implemented Interfaces:
NamedWriteable,VersionedNamedWriteable,Writeable,QueryBuilder,Rewriteable<QueryBuilder>,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
@Deprecated
public class TextExpansionQueryBuilder
extends AbstractQueryBuilder<TextExpansionQueryBuilder>
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 org.elasticsearch.xcontent.ParseFieldDeprecated.static final org.elasticsearch.xcontent.ParseFieldDeprecated.static final StringDeprecated.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
ConstructorsConstructorDescriptionTextExpansionQueryBuilder(String fieldName, String modelText, String modelId) Deprecated.TextExpansionQueryBuilder(String fieldName, String modelText, String modelId, TokenPruningConfig tokenPruningConfig) Deprecated.Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanDeprecated.protected intDeprecated.protected QueryBuilderdoRewrite(QueryRewriteContext queryRewriteContext) Deprecated.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 TextExpansionQueryBuilderfromXContent(org.elasticsearch.xcontent.XContentParser parser) Deprecated.Deprecated.Deprecated.Deprecated.Methods inherited from class org.elasticsearch.index.query.AbstractQueryBuilder
addValidationError, boost, boost, boostAndQueryNameToXContent, checkNegativeBoost, declareStandardFields, doCoordinatorRewrite, doIndexMetadataRewrite, doInnerHitsRewrite, 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:
-
MODEL_TEXT
public static final org.elasticsearch.xcontent.ParseField MODEL_TEXTDeprecated. -
MODEL_ID
public static final org.elasticsearch.xcontent.ParseField MODEL_IDDeprecated. -
TEXT_EXPANSION_DEPRECATION_MESSAGE
Deprecated.- See Also:
-
-
Constructor Details
-
TextExpansionQueryBuilder
Deprecated. -
TextExpansionQueryBuilder
public TextExpansionQueryBuilder(String fieldName, String modelText, String modelId, @Nullable TokenPruningConfig tokenPruningConfig) Deprecated. -
TextExpansionQueryBuilder
Deprecated.- Throws:
IOException
-
-
Method Details
-
getTokenPruningConfig
Deprecated. -
getWriteableName
Deprecated. -
getMinimalSupportedVersion
Deprecated. -
doWriteTo
Deprecated.- Specified by:
doWriteToin classAbstractQueryBuilder<TextExpansionQueryBuilder>- Throws:
IOException
-
doXContent
protected void doXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException Deprecated.- Specified by:
doXContentin classAbstractQueryBuilder<TextExpansionQueryBuilder>- Throws:
IOException
-
doRewrite
Deprecated.- Overrides:
doRewritein classAbstractQueryBuilder<TextExpansionQueryBuilder>
-
doToQuery
Deprecated.- Specified by:
doToQueryin classAbstractQueryBuilder<TextExpansionQueryBuilder>
-
doEquals
Deprecated.- Specified by:
doEqualsin classAbstractQueryBuilder<TextExpansionQueryBuilder>
-
doHashCode
protected int doHashCode()Deprecated.- Specified by:
doHashCodein classAbstractQueryBuilder<TextExpansionQueryBuilder>
-
fromXContent
public static TextExpansionQueryBuilder fromXContent(org.elasticsearch.xcontent.XContentParser parser) throws IOException Deprecated.- Throws:
IOException
-