Package de.cxp.ocs.config
Class QueryConfiguration.QueryCondition
java.lang.Object
de.cxp.ocs.config.QueryConfiguration.QueryCondition
- Enclosing class:
QueryConfiguration
Describes the condition under that the particular query is constructed.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionsetMatchingRegex
(String matchingRegex) Set a regular expression that should match for the whole search query.setMaxQueryLength
(int maxQueryLength) Set inclusive maximum of length for a query factory to be used.setMaxTermCount
(int maxTermCount) Set inclusive maximum of terms for a query factory to be used.setMinTermCount
(int minTermCount) Set minimum of terms for a query factory to be used.
-
Constructor Details
-
QueryCondition
public QueryCondition()
-
-
Method Details
-
setMinTermCount
Set minimum of terms for a query factory to be used.- Parameters:
minTermCount
- min term count (value > 0)- Returns:
- the changed query condition
-
setMaxTermCount
Set inclusive maximum of terms for a query factory to be used.- Parameters:
maxTermCount
- max term count (value > 0)- Returns:
- the changed query condition
-
setMaxQueryLength
Set inclusive maximum of length for a query factory to be used.- Parameters:
maxQueryLength
- max query length (value > 1)- Returns:
- the changed query condition
-
setMatchingRegex
Set a regular expression that should match for the whole search query.- Parameters:
matchingRegex
- regular expression- Returns:
- the changed query condition
-