Module org.elasticsearch.xcore
Class WeightedTokensUtils
java.lang.Object
org.elasticsearch.xpack.core.ml.search.WeightedTokensUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.lucene.search.QueryqueryBuilderWithAllTokens(String fieldName, List<WeightedToken> tokens, MappedFieldType ft, SearchExecutionContext context) static org.apache.lucene.search.QueryqueryBuilderWithPrunedTokens(String fieldName, TokenPruningConfig tokenPruningConfig, List<WeightedToken> tokens, MappedFieldType ft, SearchExecutionContext context)
-
Method Details
-
queryBuilderWithAllTokens
public static org.apache.lucene.search.Query queryBuilderWithAllTokens(String fieldName, List<WeightedToken> tokens, MappedFieldType ft, SearchExecutionContext context) -
queryBuilderWithPrunedTokens
public static org.apache.lucene.search.Query queryBuilderWithPrunedTokens(String fieldName, TokenPruningConfig tokenPruningConfig, List<WeightedToken> tokens, MappedFieldType ft, SearchExecutionContext context) throws IOException - Throws:
IOException
-