Class TermFactory


  • public final class TermFactory
    extends java.lang.Object
    A factory for Lucene Term instances with frequently used field names.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static Term newAncestorTerm​(java.lang.String path)  
      static Term newFulltextTerm​(java.lang.String ft)  
      static Term newFulltextTerm​(java.lang.String ft, java.lang.String field)  
      static Term newPathTerm​(java.lang.String path)
      Creates a Term with the given path value and with a field name FieldNames.PATH.
      • Methods inherited from class java.lang.Object

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

      • newPathTerm

        public static Term newPathTerm​(java.lang.String path)
        Creates a Term with the given path value and with a field name FieldNames.PATH.
        Parameters:
        path - the path.
        Returns:
        the path term.
      • newFulltextTerm

        public static Term newFulltextTerm​(java.lang.String ft,
                                           java.lang.String field)
      • newAncestorTerm

        public static Term newAncestorTerm​(java.lang.String path)
      • newFulltextTerm

        public static Term newFulltextTerm​(java.lang.String ft)