public final class ContextualEvaluator extends Object
| Modifier and Type | Method and Description |
|---|---|
static org.apache.lucene.store.Directory |
buildIndex(String fullDocument)
Build one Lucene index for the specified XML Document that contains both case-insensitive and
case-sensitive indexed text.
|
static org.apache.lucene.store.Directory |
buildIndex(String fullDocument,
String[] xpathSelectors)
Build one Lucene index for the specified XML Document that contains both case-insensitive and
case-sensitive indexed text.
|
static boolean |
evaluate(ContextualEvaluationCriteria cec) |
public static boolean evaluate(ContextualEvaluationCriteria cec) throws IOException, org.apache.lucene.queryParser.ParseException
cec - IOExceptionorg.apache.lucene.queryParser.ParseExceptionpublic static org.apache.lucene.store.Directory buildIndex(String fullDocument) throws IOException
fullDocument - the XML document to be indexedIOExceptionpublic static org.apache.lucene.store.Directory buildIndex(String fullDocument, String[] xpathSelectors) throws IOException
fullDocument - the XML document to be indexedxpathSelectors - the XPath selectors to use to extract the indexable text from the XML
documentIOExceptionThis work is licensed under a Creative Commons Attribution 4.0 International License.