Class QueryConfiguration.QueryCondition

java.lang.Object
de.cxp.ocs.config.QueryConfiguration.QueryCondition
Enclosing class:
QueryConfiguration

public static class QueryConfiguration.QueryCondition extends Object
Describes the condition under that the particular query is constructed.
  • Constructor Details

    • QueryCondition

      public QueryCondition()
  • Method Details

    • setMinTermCount

      public QueryConfiguration.QueryCondition setMinTermCount(int minTermCount)
      Set minimum of terms for a query factory to be used.
      Parameters:
      minTermCount - min term count (value > 0)
      Returns:
      the changed query condition
    • setMaxTermCount

      public QueryConfiguration.QueryCondition setMaxTermCount(int maxTermCount)
      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

      public QueryConfiguration.QueryCondition setMaxQueryLength(int maxQueryLength)
      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

      public QueryConfiguration.QueryCondition setMatchingRegex(String matchingRegex)
      Set a regular expression that should match for the whole search query.
      Parameters:
      matchingRegex - regular expression
      Returns:
      the changed query condition