Class ContextualEvaluator

java.lang.Object
ddf.catalog.pubsub.criteria.contextual.ContextualEvaluator

public final class ContextualEvaluator extends Object
  • Method Details

    • evaluate

      public static boolean evaluate(ContextualEvaluationCriteria cec) throws IOException, org.apache.lucene.queryParser.ParseException
      Parameters:
      cec -
      Returns:
      Throws:
      IOException
      org.apache.lucene.queryParser.ParseException
    • buildIndex

      public static org.apache.lucene.store.Directory buildIndex(String fullDocument) throws IOException
      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 indexed
      xpathSelectors - 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