java.lang.Object
org.elasticsearch.inference.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
 
 -