Class DefaultQueryFactory
- java.lang.Object
-
- de.cxp.ocs.elasticsearch.query.builder.DefaultQueryFactory
-
- All Implemented Interfaces:
ESQueryFactory
public class DefaultQueryFactory extends Object implements ESQueryFactory
A predefined broad query that tries to get good results without loosing too much precision.
No
QueryBuildingSettings are supported. Everything is predefined with this query.It should only be used with the main fields and their '.standard' subfield, because it uses the standard analyzer.
-
-
Constructor Summary
Constructors Constructor Description DefaultQueryFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallowParallelSpellcheckExecution()MasterVariantQuerycreateQuery(List<QueryStringTerm> searchTerms)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, wait
-
Methods inherited from interface de.cxp.ocs.spi.search.ESQueryFactory
getName
-
-
-
-
Method Detail
-
initialize
public void initialize(String name, Map<QueryBuildingSetting,String> settings, Map<String,Float> fieldWeights, FieldConfigAccess fieldConfig)
- Specified by:
initializein interfaceESQueryFactory
-
createQuery
public MasterVariantQuery createQuery(List<QueryStringTerm> searchTerms)
- Specified by:
createQueryin interfaceESQueryFactory
-
allowParallelSpellcheckExecution
public boolean allowParallelSpellcheckExecution()
- Specified by:
allowParallelSpellcheckExecutionin interfaceESQueryFactory
-
-