Class TermFactory


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

      • newPathTerm

        public static Term newPathTerm​(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​(String ft,
                                           String field)
      • newAncestorTerm

        public static Term newAncestorTerm​(String path)
      • newFulltextTerm

        public static Term newFulltextTerm​(String ft)