Class ConfigurableQueryFactory
- java.lang.Object
-
- de.cxp.ocs.elasticsearch.query.builder.ConfigurableQueryFactory
-
- All Implemented Interfaces:
ESQueryFactory
public class ConfigurableQueryFactory extends Object implements ESQueryFactory
Factory that exposes the flexibility of Elasticsearch query-string-query to OCS using a configuration. See the query-string-query documentation for details.
SupportedQueryBuildingSettings:- fuzziness
- operator
- analyzer
- minShouldMatch
- tieBreaker
- multimatch_type
- acceptNoResult: if set to true, no results will be accepted and no further search is done
- isQueryWithShingles: build term shingles for multi-term queries
- allowParallelSpellcheck: run parallel spell-check with this query. If terms could be corrected and 0 results are found, this query is built again with the corrected terms.
-
-
Constructor Summary
Constructors Constructor Description ConfigurableQueryFactory()
-
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
-
-