Class TermFactory
- java.lang.Object
-
- org.apache.jackrabbit.oak.plugins.index.lucene.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 givenpath
value and with a field nameFieldNames.PATH
.
-
-
-
Method Detail
-
newPathTerm
public static Term newPathTerm(java.lang.String path)
Creates a Term with the givenpath
value and with a field nameFieldNames.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)
-
-