Package de.cxp.ocs.config
Class QueryProcessingConfiguration
java.lang.Object
de.cxp.ocs.config.QueryProcessingConfiguration
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetUserQueryAnalyzer
(String userQueryAnalyzer) Optional classname (canonical or simple) of the userQueryAnalyzer to use.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.
-
Constructor Details
-
QueryProcessingConfiguration
public QueryProcessingConfiguration()
-
-
Method Details
-
setUserQueryPreprocessors
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
- list of full canonicalUserQueryPreprocessor
implementation class names- Returns:
- self
-
setUserQueryAnalyzer
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
- full canonicalUserQueryAnalyzer
implementation class name- Returns:
- self
-