Class UHComponents
- java.lang.Object
-
- org.apache.lucene.search.uhighlight.UHComponents
-
public class UHComponents extends Object
A parameter object to hold the components aFieldOffsetStrategy
needs.- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
-
Constructor Summary
Constructors Constructor Description UHComponents(String field, Predicate<String> fieldMatcher, Query query, BytesRef[] terms, PhraseHelper phraseHelper, LabelledCharArrayMatcher[] automata, boolean hasUnrecognizedQueryPart, Set<UnifiedHighlighter.HighlightFlag> highlightFlags)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LabelledCharArrayMatcher[]
getAutomata()
String
getField()
Predicate<String>
getFieldMatcher()
Set<UnifiedHighlighter.HighlightFlag>
getHighlightFlags()
PhraseHelper
getPhraseHelper()
Query
getQuery()
BytesRef[]
getTerms()
boolean
hasUnrecognizedQueryPart()
-
-
-
Constructor Detail
-
UHComponents
public UHComponents(String field, Predicate<String> fieldMatcher, Query query, BytesRef[] terms, PhraseHelper phraseHelper, LabelledCharArrayMatcher[] automata, boolean hasUnrecognizedQueryPart, Set<UnifiedHighlighter.HighlightFlag> highlightFlags)
-
-
Method Detail
-
getField
public String getField()
-
getQuery
public Query getQuery()
-
getTerms
public BytesRef[] getTerms()
-
getPhraseHelper
public PhraseHelper getPhraseHelper()
-
getAutomata
public LabelledCharArrayMatcher[] getAutomata()
-
hasUnrecognizedQueryPart
public boolean hasUnrecognizedQueryPart()
-
getHighlightFlags
public Set<UnifiedHighlighter.HighlightFlag> getHighlightFlags()
-
-