public interface FragmentsBuilder
Modifier and Type | Method and Description |
---|---|
String |
createFragment(org.apache.lucene.index.IndexReader reader,
int docId,
String fieldName,
FieldFragList fieldFragList)
create a fragment.
|
String[] |
createFragments(org.apache.lucene.index.IndexReader reader,
int docId,
String fieldName,
FieldFragList fieldFragList,
int maxNumFragments)
create multiple fragments.
|
String createFragment(org.apache.lucene.index.IndexReader reader, int docId, String fieldName, FieldFragList fieldFragList) throws IOException
reader
- IndexReader of the indexdocId
- document id to be highlightedfieldName
- field of the document to be highlightedfieldFragList
- FieldFragList objectIOException
String[] createFragments(org.apache.lucene.index.IndexReader reader, int docId, String fieldName, FieldFragList fieldFragList, int maxNumFragments) throws IOException
reader
- IndexReader of the indexdocId
- document id to be highlighterfieldName
- field of the document to be highlightedfieldFragList
- FieldFragList objectmaxNumFragments
- maximum number of fragmentsIOException
Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.