Class FullTextTerm
java.lang.Object
org.apache.jackrabbit.oak.spi.query.fulltext.FullTextExpression
org.apache.jackrabbit.oak.spi.query.fulltext.FullTextTerm
A fulltext term, or a "not" term.
-
Field Summary
Fields inherited from class org.apache.jackrabbit.oak.spi.query.fulltext.FullTextExpression
PRECEDENCE_AND, PRECEDENCE_OR, PRECEDENCE_TERM
-
Constructor Summary
ConstructorsConstructorDescriptionFullTextTerm
(String propertyName, String text, boolean not, boolean escaped, String boost) FullTextTerm
(String propertyName, FullTextTerm copy) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Let the expression call the applicable visit method of the visitor.boolean
Evaluate whether the value matches the condition.getBoost()
int
Get the operator precedence.getText()
static boolean
isFullTextCharacter
(char c) Whether or not the given character is part of a full-text term that should be indexed.boolean
isNot()
Whether the currentFullTextExpression
is aNOT
condition or not.simplify()
toString()
Get the string representation of the condition.Methods inherited from class org.apache.jackrabbit.oak.spi.query.fulltext.FullTextExpression
equals, hashCode
-
Constructor Details
-
FullTextTerm
-
FullTextTerm
-
-
Method Details
-
isFullTextCharacter
public static boolean isFullTextCharacter(char c) Whether or not the given character is part of a full-text term that should be indexed. Not indexed are punctuation, control characters such as tab, See also Unicode Categories.- Parameters:
c
- the character- Returns:
- true if the character should be indexed
-
evaluate
Description copied from class:FullTextExpression
Evaluate whether the value matches the condition.- Specified by:
evaluate
in classFullTextExpression
- Parameters:
value
- the value- Returns:
- true if it matches
-
simplify
-
toString
Description copied from class:FullTextExpression
Get the string representation of the condition.- Specified by:
toString
in classFullTextExpression
-
getPropertyName
-
getBoost
-
isNot
public boolean isNot()Description copied from class:FullTextExpression
Whether the currentFullTextExpression
is aNOT
condition or not. Default is false- Overrides:
isNot
in classFullTextExpression
- Returns:
- true if the current condition represent a NOT, false otherwise.
-
getText
-
getPrecedence
public int getPrecedence()Description copied from class:FullTextExpression
Get the operator precedence.- Specified by:
getPrecedence
in classFullTextExpression
- Returns:
- the precedence
-
accept
Description copied from class:FullTextExpression
Let the expression call the applicable visit method of the visitor.- Specified by:
accept
in classFullTextExpression
- Parameters:
v
- the visitor- Returns:
- true if the visit method returned true
-