Class ContextualEvaluator
java.lang.Object
ddf.catalog.pubsub.criteria.contextual.ContextualEvaluator
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.lucene.store.DirectorybuildIndex(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.DirectorybuildIndex(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
-
Method Details
-
evaluate
public static boolean evaluate(ContextualEvaluationCriteria cec) throws IOException, org.apache.lucene.queryParser.ParseException - Parameters:
cec-- Returns:
- Throws:
IOExceptionorg.apache.lucene.queryParser.ParseException
-
buildIndex
Build one Lucene index for the specified XML Document that contains both case-insensitive and case-sensitive indexed text. Use the default XPath selectors to extract the indexable text from the specified XML document.- Parameters:
fullDocument- the XML document to be indexed- Returns:
- the Lucene index for the indexed text from the XML document
- Throws:
IOException
-
buildIndex
public static org.apache.lucene.store.Directory buildIndex(String fullDocument, String[] xpathSelectors) throws IOException Build one Lucene index for the specified XML Document that contains both case-insensitive and case-sensitive indexed text. Use the provided XPath selectors to extract the indexable text from the specified XML document.- Parameters:
fullDocument- the XML document to be indexedxpathSelectors- the XPath selectors to use to extract the indexable text from the XML document- Returns:
- the Lucene index for the indexed text from the XML document
- Throws:
IOException
-