org.apache.jackrabbit.oak.plugins.index.lucene
Class TermFactory
java.lang.Object
org.apache.jackrabbit.oak.plugins.index.lucene.TermFactory
public final class TermFactory
- extends Object
TermFactory is a factory for Term instances with
frequently used field names.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
newPathTerm
public static org.apache.lucene.index.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 org.apache.lucene.index.Term newFulltextTerm(String ft,
String field)
newFulltextTerm
public static org.apache.lucene.index.Term newFulltextTerm(String ft)
Copyright © 2012-2014 The Apache Software Foundation. All Rights Reserved.