java.lang.Object
dev.nicklasw.query.builder.Node
dev.nicklasw.query.builder.Criteria
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCreates newPredicateforRANGE [lowerBound TO upperBound].Crates newPredicateforRANGE [lowerBound TO upperBound].boost(float boost) BoostCriteriawith given factor.protected <T extends Node>
Tcreate()expression(@NonNull String s) Creates newPredicateallowing native solr expressions.Creates newPredicatewith trailing~followed by levensteinDistance.Creates newPredicatewith trailing~.floatgetBoost()Boost factor value.getField()Creates newPredicatewithout any wildcards.isNull()Creates newPredicatefornullvalues.must()Set theCriteriaas required.mustNot()Set theCriteriaas negating.Creates newPredicateallowing regular expression.static CriteriaStatic factory method to create a newCriteriafor provided field.static CriteriaStatic factory method to create a newCriteriafor field with given name.Methods inherited from class dev.nicklasw.query.builder.Node
add, add, and, connect, getOccur, getOperator, getSiblings, hasOccurEqualTo, hasOccurNotEqualTo, hasParent, hasSiblings, or, setParent
-
Field Details
-
WILDCARD
- See Also:
-
-
Constructor Details
-
Criteria
-
-
Method Details
-
where
Static factory method to create a newCriteriafor field with given name.- Parameters:
fieldName- must not be null.- Returns:
- the
Criteria
-
where
Static factory method to create a newCriteriafor provided field.- Parameters:
field- must not be null.- Returns:
- the
Criteria
-
expression
Creates newPredicateallowing native solr expressions.- Parameters:
s- must not be null.- Returns:
- the
Criteria
-
is
Creates newPredicatewithout any wildcards. Strings with blanks will be escaped"string\ with\ blank"- Parameters:
o- must not be null- Returns:
- the
Criteria
-
between
Creates newPredicateforRANGE [lowerBound TO upperBound].- Parameters:
lowerBound- can be null. A null value will be handled as a wildcard.upperBound- can be null. A null value will be handled as a wildcard.- Returns:
- the
Criteria
-
between
public Criteria between(@Nullable Object lowerBound, @Nullable Object upperBound, boolean includeLowerBound, boolean includeUpperBound) Crates newPredicateforRANGE [lowerBound TO upperBound].- Parameters:
lowerBound- can be null. A null value will be handled as a wildcard.upperBound- can be null. A null value will be handled as a wildcard.includeLowerBound- to include the lower boundincludeUpperBound- to include the upper bound- Returns:
- the
Criteria
-
fuzzy
Creates newPredicatewith trailing~.- Parameters:
s- must not be null.- Returns:
- the
Criteria
-
fuzzy
Creates newPredicatewith trailing~followed by levensteinDistance.- Parameters:
s- must not be null.levenshteinDistance- must not be null.- Returns:
- the
Criteria
-
regexp
Creates newPredicateallowing regular expression.- Parameters:
s- must not be null.- Returns:
- the
Criteria
-
boost
BoostCriteriawith given factor.- Parameters:
boost- the boost factor- Returns:
- the
Criteria
-
isNull
Creates newPredicatefornullvalues.- Returns:
- the
Criteria
-
must
Set theCriteriaas required.- Returns:
- the
Criteria
-
mustNot
Set theCriteriaas negating.- Returns:
- the
Criteria
-
getPredicates
-
getField
-
getBoost
public float getBoost()Boost factor value.- Returns:
Float.NaNif not set
-
create
-