public final class TermFactory extends Object
TermFactory
is a factory for Term
instances with
frequently used field names.Modifier and Type | Method and Description |
---|---|
static org.apache.lucene.index.Term |
newAncestorTerm(String path) |
static org.apache.lucene.index.Term |
newFulltextTerm(String ft) |
static org.apache.lucene.index.Term |
newFulltextTerm(String ft,
String field) |
static org.apache.lucene.index.Term |
newPathTerm(String path)
Creates a Term with the given
path value and with a field
name FieldNames.PATH . |
public static org.apache.lucene.index.Term newPathTerm(String path)
path
value and with a field
name FieldNames.PATH
.path
- the path.public static org.apache.lucene.index.Term newAncestorTerm(String path)
public static org.apache.lucene.index.Term newFulltextTerm(String ft)
Copyright © 2012-2018 The Apache Software Foundation. All Rights Reserved.