Class FullTextParser


  • public class FullTextParser
    extends java.lang.Object
    A parser for fulltext condition literals. The grammar is defined in the JCR 2.0 specification, 6.7.19 FullTextSearch, as follows (a bit simplified):
     FullTextSearchLiteral ::= Disjunct {' OR ' Disjunct}
     Disjunct ::= Term {' ' Term}
     Term ::= ['-'] SimpleTerm
     SimpleTerm ::= Word | '"' Word {' ' Word} '"'
     
    • Constructor Summary

      Constructors 
      Constructor Description
      FullTextParser()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static FullTextExpression parse​(java.lang.String propertyName, java.lang.String text)  
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • FullTextParser

        public FullTextParser()
    • Method Detail

      • parse

        public static FullTextExpression parse​(java.lang.String propertyName,
                                               java.lang.String text)
                                        throws java.text.ParseException
        Throws:
        java.text.ParseException