Class MultiTermHighlighting


  • final class MultiTermHighlighting
    extends java.lang.Object
    Support for highlighting multi-term queries.
    • Constructor Detail

      • MultiTermHighlighting

        private MultiTermHighlighting()
    • Method Detail

      • extractAutomata

        static LabelledCharArrayMatcher[] extractAutomata​(Query query,
                                                          java.util.function.Predicate<java.lang.String> fieldMatcher,
                                                          boolean lookInSpan)
        Extracts MultiTermQueries that match the provided field predicate. Returns equivalent automata that will match terms.
      • canExtractAutomataFromLeafQuery

        public static boolean canExtractAutomataFromLeafQuery​(Query query)
        Indicates if the the leaf query (from QueryVisitor.visitLeaf(Query)) is a type of query that we can extract automata from.