C# 클래스 Rubber.DSL.HighlightBuilder

상속: IJsonSerializable
파일 보기 프로젝트 열기: stephenpope/Rubber 1 사용 예제들

공개 메소드들

메소드 설명
Encoder ( string encoder ) : HighlightBuilder

Set encoder for the highlighting are styled and default.

Field ( string name ) : HighlightBuilder

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 ) : HighlightBuilder

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 ) : HighlightBuilder

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 ) : HighlightBuilder

Adds a field to be highlighted with a provided fragment size (in characters), and a provided (maximum) number of fragments.

Order ( string order ) : HighlightBuilder

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 ( ) : HighlightBuilder

Explicitly set the post tags that will be used for highlighting.

PreTags ( ) : HighlightBuilder

Explicitly set the pre tags that will be used for highlighting.

TagsSchema ( string schemaName ) : HighlightBuilder

Set a tag scheme that encapsulates a built in pre and post tags. The allows schemes are styled and default.

ToJsonObject ( ) : object

메소드 상세

Encoder() 공개 메소드

Set encoder for the highlighting are styled and default.
public Encoder ( string encoder ) : HighlightBuilder
encoder string Encoder name
리턴 HighlightBuilder

Field() 공개 메소드

Adds a field to be highlighted with default fragment size of 100 characters, and default number of fragments of 5 using the default encoder
public Field ( string name ) : HighlightBuilder
name string The field to highlight
리턴 HighlightBuilder

Field() 공개 메소드

Adds a field to be highlighted with a provided fragment size (in characters), and default number of fragments of 5.
public Field ( string name, int fragmentSize ) : HighlightBuilder
name string The field to highlight
fragmentSize int The size of a fragment in characters
리턴 HighlightBuilder

Field() 공개 메소드

Adds a field to be highlighted with a provided fragment size (in characters), and a provided (maximum) number of fragments.
public Field ( string name, int fragmentSize, int numberOfFragments ) : HighlightBuilder
name string The field to highlight
fragmentSize int The size of a fragment in characters
numberOfFragments int The (maximum) number of fragments
리턴 HighlightBuilder

Field() 공개 메소드

Adds a field to be highlighted with a provided fragment size (in characters), and a provided (maximum) number of fragments.
public Field ( string name, int fragmentSize, int numberOfFragments, int fragmentOffset ) : HighlightBuilder
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
리턴 HighlightBuilder

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.
public Order ( string order ) : HighlightBuilder
order string
리턴 HighlightBuilder

PostTags() 공개 메소드

Explicitly set the post tags that will be used for highlighting.
public PostTags ( ) : HighlightBuilder
리턴 HighlightBuilder

PreTags() 공개 메소드

Explicitly set the pre tags that will be used for highlighting.
public PreTags ( ) : HighlightBuilder
리턴 HighlightBuilder

TagsSchema() 공개 메소드

Set a tag scheme that encapsulates a built in pre and post tags. The allows schemes are styled and default.
public TagsSchema ( string schemaName ) : HighlightBuilder
schemaName string The tag scheme name
리턴 HighlightBuilder

ToJsonObject() 공개 메소드

public ToJsonObject ( ) : object
리턴 object