Class RelaxedQueryFactory
java.lang.Object
de.cxp.ocs.elasticsearch.query.builder.RelaxedQueryFactory
- All Implemented Interfaces:
FallbackConsumer,ESQueryFactory
Query factory uses the QueryPredictor to determine, which terms work together.
Based on that a query is built that combines the results for all valid term-combinations including some boosting for
the unknown terms.
- Author:
- Rudolf Batt
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanTextMatchQuery<org.elasticsearch.index.query.QueryBuilder> createQuery(ExtendedQuery parsedQuery) voidinitialize(String name, Map<QueryBuildingSetting, String> settings, Map<String, Float> fieldWeights, FieldConfigAccess fieldConfig) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface de.cxp.ocs.spi.search.ESQueryFactory
getNameMethods inherited from interface de.cxp.ocs.elasticsearch.query.builder.FallbackConsumer
setFallbackQueryBuilder
-
Constructor Details
-
RelaxedQueryFactory
public RelaxedQueryFactory()
-
-
Method Details
-
initialize
public void initialize(String name, Map<QueryBuildingSetting, String> settings, Map<String, Float> fieldWeights, FieldConfigAccess fieldConfig) - Specified by:
initializein interfaceESQueryFactory
-
createQuery
public TextMatchQuery<org.elasticsearch.index.query.QueryBuilder> createQuery(ExtendedQuery parsedQuery) - Specified by:
createQueryin interfaceESQueryFactory
-
allowParallelSpellcheckExecution
public boolean allowParallelSpellcheckExecution()- Specified by:
allowParallelSpellcheckExecutionin interfaceESQueryFactory
-