Class MultiTermHighlighting
java.lang.Object
org.apache.lucene.search.uhighlight.MultiTermHighlighting
Support for highlighting multi-term queries.
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
Indicates if the leaf query (fromQueryVisitor.visitLeaf(Query)
) is a type of query that we can extract automata from.(package private) static LabelledCharArrayMatcher[]
extractAutomata
(Query query, Predicate<String> fieldMatcher, boolean lookInSpan) Extracts MultiTermQueries that match the provided field predicate.
-
Constructor Details
-
MultiTermHighlighting
private MultiTermHighlighting()
-
-
Method Details
-
extractAutomata
static LabelledCharArrayMatcher[] extractAutomata(Query query, Predicate<String> fieldMatcher, boolean lookInSpan) Extracts MultiTermQueries that match the provided field predicate. Returns equivalent automata that will match terms. -
canExtractAutomataFromLeafQuery
Indicates if the leaf query (fromQueryVisitor.visitLeaf(Query)
) is a type of query that we can extract automata from.
-