create a fragment.

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 CreateFragment(
	IndexReader reader,
	int docId,
	string fieldName,
	FieldFragList fieldFragList
)
Visual Basic
Function CreateFragment ( _
	reader As IndexReader, _
	docId As Integer, _
	fieldName As String, _
	fieldFragList As FieldFragList _
) As String
Visual C++
String^ CreateFragment(
	IndexReader^ reader, 
	int docId, 
	String^ fieldName, 
	FieldFragList^ fieldFragList
)

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
FieldFragList object

Return Value

a created fragment or null when no fragment created

See Also