Class MinimumMatch
- java.lang.Object
-
- com.lucidworks.search.dsl.DslBase
-
- com.lucidworks.search.dsl.request.DslCloneable
-
- com.lucidworks.search.dsl.request.query.MinimumMatch
-
public class MinimumMatch extends DslCloneable
Represents the criteria for the minimum number of optional query clauses that must match for a result to be returned.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MinimumMatch.Operand
-
Constructor Summary
Constructors Constructor Description MinimumMatch(java.lang.Integer clauses, MinimumMatch.Operand operand, java.lang.Integer condition)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MinimumMatch
clone()
java.lang.Integer
getClauses()
java.lang.Integer
getCondition()
MinimumMatch.Operand
getOperand()
-
Methods inherited from class com.lucidworks.search.dsl.request.DslCloneable
clone, deepClone
-
-
-
-
Constructor Detail
-
MinimumMatch
public MinimumMatch(java.lang.Integer clauses, MinimumMatch.Operand operand, java.lang.Integer condition)
-
-
Method Detail
-
getClauses
public java.lang.Integer getClauses()
- Returns:
- The minimum number of clauses that must match if positive, or the maximum unmatched clauses if negative.
-
getOperand
public MinimumMatch.Operand getOperand()
- Returns:
- An operator that indicates whether to consider clauses as a percentage or if there is a second term for the matching criteria for queries with more or fewer clauses than the specified minimum.
-
getCondition
public java.lang.Integer getCondition()
- Returns:
- The right-hand side of the greater or lesser condition, if there is one.
-
clone
public MinimumMatch clone()
- Specified by:
clone
in classDslCloneable
-
-