Method CreateFragment
CreateFragment(IndexReader, Int32, String, FieldFragList)
create a fragment.
Declaration
string CreateFragment(IndexReader reader, int docId, string fieldName, FieldFragList fieldFragList)
Parameters
Type | Name | Description |
---|---|---|
IndexReader | reader | |
System.Int32 | docId | document id to be highlighted |
System.String | fieldName | field of the document to be highlighted |
FieldFragList | fieldFragList | FieldFragList object |
Returns
Type | Description |
---|---|
System.String | a created fragment or null when no fragment created |
CreateFragment(IndexReader, Int32, String, FieldFragList, String[], String[], IEncoder)
create a fragment.
Declaration
string CreateFragment(IndexReader reader, int docId, string fieldName, FieldFragList fieldFragList, string[] preTags, string[] postTags, IEncoder encoder)
Parameters
Type | Name | Description |
---|---|---|
IndexReader | reader | |
System.Int32 | docId | document id to be highlighted |
System.String | fieldName | field of the document to be highlighted |
FieldFragList | fieldFragList | FieldFragList object |
System.String[] | preTags | pre-tags to be used to highlight terms |
System.String[] | postTags | post-tags to be used to highlight terms |
IEncoder | encoder | an encoder that generates encoded text |
Returns
Type | Description |
---|---|
System.String | a created fragment or null when no fragment created |