Class FullTextTerm

java.lang.Object
org.apache.jackrabbit.oak.spi.query.fulltext.FullTextExpression
org.apache.jackrabbit.oak.spi.query.fulltext.FullTextTerm

public class FullTextTerm extends FullTextExpression
A fulltext term, or a "not" term.
  • Constructor Details

    • FullTextTerm

      public FullTextTerm(String propertyName, FullTextTerm copy)
    • FullTextTerm

      public FullTextTerm(String propertyName, String text, boolean not, boolean escaped, String boost)
  • 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

      public boolean evaluate(String value)
      Description copied from class: FullTextExpression
      Evaluate whether the value matches the condition.
      Specified by:
      evaluate in class FullTextExpression
      Parameters:
      value - the value
      Returns:
      true if it matches
    • simplify

      public FullTextExpression simplify()
    • toString

      public String toString()
      Description copied from class: FullTextExpression
      Get the string representation of the condition.
      Specified by:
      toString in class FullTextExpression
    • getPropertyName

      public String getPropertyName()
    • getBoost

      public String getBoost()
    • isNot

      public boolean isNot()
      Description copied from class: FullTextExpression
      Whether the current FullTextExpression is a NOT condition or not. Default is false
      Overrides:
      isNot in class FullTextExpression
      Returns:
      true if the current condition represent a NOT, false otherwise.
    • getText

      public String getText()
    • getPrecedence

      public int getPrecedence()
      Description copied from class: FullTextExpression
      Get the operator precedence.
      Specified by:
      getPrecedence in class FullTextExpression
      Returns:
      the precedence
    • accept

      public boolean accept(FullTextVisitor v)
      Description copied from class: FullTextExpression
      Let the expression call the applicable visit method of the visitor.
      Specified by:
      accept in class FullTextExpression
      Parameters:
      v - the visitor
      Returns:
      true if the visit method returned true