Package de.cxp.ocs.config
Class QueryProcessingConfiguration
- java.lang.Object
-
- de.cxp.ocs.config.QueryProcessingConfiguration
-
public class QueryProcessingConfiguration extends Object
-
-
Constructor Summary
Constructors Constructor Description QueryProcessingConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description QueryProcessingConfigurationsetUserQueryAnalyzer(String userQueryAnalyzer)Optional classname (canonical or simple) of the userQueryAnalyzer to use.QueryProcessingConfigurationsetUserQueryPreprocessors(List<String> userQueryPreprocessors)List of custom query preprocessors (their canonical or simple class name) to be activated for the usage at the associated tenant.
-
-
-
Method Detail
-
setUserQueryPreprocessors
public QueryProcessingConfiguration setUserQueryPreprocessors(List<String> userQueryPreprocessors)
List of custom query preprocessors (their canonical or simple class name) to be activated for the usage at the associated tenant.
Processors that can't be found, will be ignored (with some warning log message).
- Parameters:
userQueryPreprocessors-- Returns:
- config again for fluent access
-
setUserQueryAnalyzer
public QueryProcessingConfiguration setUserQueryAnalyzer(String userQueryAnalyzer)
Optional classname (canonical or simple) of the userQueryAnalyzer to use.
Besides the standard available analyzers (WhitespaceAnalyzer and WhitespaceWithShingles) there could also be custom analyzers.
If nothing is defined here or the specified one is not found, then the default analyzer (WhitespaceAnalyzer) is used.
- Parameters:
userQueryAnalyzer-- Returns:
- config again for fluent access
-
-