Class MultiTermHighlighting
- java.lang.Object
-
- org.apache.lucene.search.uhighlight.MultiTermHighlighting
-
final class MultiTermHighlighting extends java.lang.Object
Support for highlighting multi-term queries.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static class
MultiTermHighlighting.AutomataCollector
-
Constructor Summary
Constructors Modifier Constructor Description private
MultiTermHighlighting()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static boolean
canExtractAutomataFromLeafQuery(Query query)
Indicates if the the leaf query (fromQueryVisitor.visitLeaf(Query)
) is a type of query that we can extract automata from.(package private) static LabelledCharArrayMatcher[]
extractAutomata(Query query, java.util.function.Predicate<java.lang.String> fieldMatcher, boolean lookInSpan)
Extracts MultiTermQueries that match the provided field predicate.
-
-
-
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 (fromQueryVisitor.visitLeaf(Query)
) is a type of query that we can extract automata from.
-
-