create multiple fragments.

Namespace: Lucene.Net.Search.Vectorhighlight
Assembly: Lucene.Net.FastVectorHighlighter (in Lucene.Net.FastVectorHighlighter.dll) Version: 2.9.2.0 (2.9.2)

Syntax

C#
string[] CreateFragments(
	IndexReader reader,
	int docId,
	string fieldName,
	FieldFragList fieldFragList,
	int maxNumFragments
)
Visual Basic
Function CreateFragments ( _
	reader As IndexReader, _
	docId As Integer, _
	fieldName As String, _
	fieldFragList As FieldFragList, _
	maxNumFragments As Integer _
) As String()
Visual C++
array<String^>^ CreateFragments(
	IndexReader^ reader, 
	int docId, 
	String^ fieldName, 
	FieldFragList^ fieldFragList, 
	int maxNumFragments
)

Parameters

reader
Type: Lucene.Net.Index..::..IndexReader
IndexReader of the index
docId
Type: System..::..Int32
document id to be highlighted
fieldName
Type: System..::..String
field of the document to be highlighted
fieldFragList
Type: Lucene.Net.Search.Vectorhighlight..::..FieldFragList
ieldFragList object
maxNumFragments
Type: System..::..Int32
maximum number of fragments

Return Value

created fragments or null when no fragments created. Size of the array can be less than maxNumFragments

See Also