Méthode | Description | |
---|---|---|
Encoder ( string encoder ) : |
Set encoder for the highlighting are styled and default.
|
|
Field ( string name ) : |
Adds a field to be highlighted with default fragment size of 100 characters, and default number of fragments of 5 using the default encoder
|
|
Field ( string name, int fragmentSize ) : |
Adds a field to be highlighted with a provided fragment size (in characters), and default number of fragments of 5.
|
|
Field ( string name, int fragmentSize, int numberOfFragments ) : |
Adds a field to be highlighted with a provided fragment size (in characters), and a provided (maximum) number of fragments.
|
|
Field ( string name, int fragmentSize, int numberOfFragments, int fragmentOffset ) : |
Adds a field to be highlighted with a provided fragment size (in characters), and a provided (maximum) number of fragments.
|
|
Order ( string order ) : |
The order of fragments per field. By default, ordered by the order in the highlighted text. Can be score, which then it will be ordered by score of the fragments.
|
|
PostTags ( ) : |
Explicitly set the post tags that will be used for highlighting.
|
|
PreTags ( ) : |
Explicitly set the pre tags that will be used for highlighting.
|
|
TagsSchema ( string schemaName ) : |
Set a tag scheme that encapsulates a built in pre and post tags. The allows schemes are styled and default.
|
|
ToJsonObject ( ) : object |
public Encoder ( string encoder ) : |
||
encoder | string | Encoder name |
Résultat |
public Field ( string name ) : |
||
name | string | The field to highlight |
Résultat |
public Field ( string name, int fragmentSize ) : |
||
name | string | The field to highlight |
fragmentSize | int | The size of a fragment in characters |
Résultat |
public Field ( string name, int fragmentSize, int numberOfFragments ) : |
||
name | string | The field to highlight |
fragmentSize | int | The size of a fragment in characters |
numberOfFragments | int | The (maximum) number of fragments |
Résultat |
public Field ( string name, int fragmentSize, int numberOfFragments, int fragmentOffset ) : |
||
name | string | The field to highlight |
fragmentSize | int | The size of a fragment in characters |
numberOfFragments | int | The (maximum) number of fragments |
fragmentOffset | int | The offset from the start of the fragment to the start of the highlight |
Résultat |
public Order ( string order ) : |
||
order | string | |
Résultat |
public TagsSchema ( string schemaName ) : |
||
schemaName | string | The tag scheme name |
Résultat |