Package de.cxp.ocs.spi.search
Interface ESQueryFactory
-
- All Known Implementing Classes:
ConfigurableQueryFactory,DefaultQueryFactory,MatchAllQueryFactory,NgramQueryFactory,PredictionQueryFactory
public interface ESQueryFactoryA reusable query factory that receives the analyzed user query to build Elasticsearch queries (one for Master level and one for the variant level).
The implementation must have a no-args-constructor and must be thread-safe.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanallowParallelSpellcheckExecution()MasterVariantQuerycreateQuery(List<QueryStringTerm> searchWords)StringgetName()voidinitialize(String name, Map<QueryBuildingSetting,String> settings, Map<String,Float> fieldWeights, FieldConfigAccess fieldConfig)
-
-
-
Method Detail
-
initialize
void initialize(String name, Map<QueryBuildingSetting,String> settings, Map<String,Float> fieldWeights, FieldConfigAccess fieldConfig)
-
createQuery
MasterVariantQuery createQuery(List<QueryStringTerm> searchWords)
-
allowParallelSpellcheckExecution
boolean allowParallelSpellcheckExecution()
-
getName
String getName()
-
-