Class UnifiedHighlighter.LimitedStoredFieldVisitor
java.lang.Object
org.apache.lucene.index.StoredFieldVisitor
org.apache.lucene.search.uhighlight.UnifiedHighlighter.LimitedStoredFieldVisitor
- Enclosing class:
- UnifiedHighlighter
Fetches stored fields for highlighting. Uses a multi-val separator char and honors a max length
to retrieve.
- NOTE: This API is for internal purposes only and might change in incompatible ways in the next release.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.apache.lucene.index.StoredFieldVisitor
StoredFieldVisitor.Status
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected final String[]
protected final int
protected CharSequence[]
protected final char
-
Constructor Summary
ConstructorDescriptionLimitedStoredFieldVisitor
(String[] fields, char valueSeparator, int maxLength) -
Method Summary
Modifier and TypeMethodDescriptionneedsField
(FieldInfo fieldInfo) void
stringField
(FieldInfo fieldInfo, String value) Methods inherited from class org.apache.lucene.index.StoredFieldVisitor
binaryField, doubleField, floatField, intField, longField
-
Field Details
-
fields
-
valueSeparator
protected final char valueSeparator -
maxLength
protected final int maxLength -
values
-
currentField
protected int currentField
-
-
Constructor Details
-
LimitedStoredFieldVisitor
-
-
Method Details
-
stringField
- Overrides:
stringField
in classStoredFieldVisitor
- Throws:
IOException
-
needsField
- Specified by:
needsField
in classStoredFieldVisitor
- Throws:
IOException
-