final class MultiTermHighlighting
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
MultiTermHighlighting.AutomataCollector |
Modifier | Constructor and Description |
---|---|
private |
MultiTermHighlighting() |
Modifier and Type | Method and Description |
---|---|
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. |
(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.
|
static LabelledCharArrayMatcher[] extractAutomata(Query query, java.util.function.Predicate<java.lang.String> fieldMatcher, boolean lookInSpan)
public static boolean canExtractAutomataFromLeafQuery(Query query)
QueryVisitor.visitLeaf(Query)
) is a type of query that
we can extract automata from.