The BuildExcerptsOptions type exposes the following members.

Constructors

  Name Description
Public method BuildExcerptsOptions
Initializes a new instance of the BuildExcerptsOptions class.

Methods

  Name Description
Public method Equals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Public method GetHashCode
Serves as a hash function for a particular type.
(Inherited from Object.)
Public method GetType
Gets the type of the current instance.
(Inherited from Object.)
Public method ToString
Returns a string that represents the current object.
(Inherited from Object.)

Properties

  Name Description
Public property AfterMatch
Gets or sets the string to insert after a match. Starting with version 1.10-beta, a %PASSAGE_ID% macro can be used in this string. Default is </b>.
Public property AllowEmpty
Gets or sets a value indicating whether to allow an empty string to be returned as highlighting result when a snippet could not be generated (no keywords match, or no passages fit the limit). By default, the beginning of original text would be returned instead of an empty string. Default is false. Supported in Sphinx 1.10.1 and above.
Public property Around
Gets or sets how much words to pick around each matching keywords block. Default is 5.
Public property BeforeMatch
Gets or sets the string to insert before a match. Starting with version 1.10-beta, a %PASSAGE_ID% macro can be used in this string. The macro is replaced with an incrementing passage number within a current snippet. Numbering starts at 1 by default but can be overridden with by setting StartPassageId. In a multi-document call, %PASSAGE_ID% would restart at every given document. Default is <b>.
Public property ChunkSeparator
Gets or sets the separator which will be used to separate chunks of text. Default is " ... ".
Public property EmitZones
Gets or sets a value indicatin whether to emit an HTML tag with an enclosing zone name before each passage. Default is false. Supported in Sphinx 2.0.1 and above.
Public property ExactPhrase
Gets or sets a value indicating whether to highlight exact query phrase matches only instead of individual keywords. Default is false.
Public property ForceAllWords
Gets or sets a value indicating whether to ignores the snippet length limit until it includes all the keywords. Default is false. Supported in Sphinx 1.10.1 and above.
Public property HtmlStripMode
Gets or sets the HTML strip mode. Default is Index. Supported in Sphinx 1.10.1 and above.
Public property Limit
Gets or sets the maximum snippet size. Default is 256.
Public property LimitPassages
Limits the maximum number of passages that can be included into the snippet. Default is 0. Supported in Sphinx 1.10.1 and above.
Public property LimitWords
Limits the maximum number of keywords that can be included into the snippet. Default is 0. Supported in Sphinx 1.10.1 and above.
Public property LoadFiles
Gets or sets a value indicating whether Whether to handle the documents parameter of BuildExcerpts(IEnumerable<(Of <<'(String>)>>), String, String, BuildExcerptsOptions) as data to extract snippets from (default behavior), or to treat it as file names, and load data from specified files on the server side. Default is false. Supported in Sphinx 1.10.1 and above.
Public property LoadFilesScattered
The source files for snippets could be distributed among different agents, and the main daemon will merge together all non-erroneous results. Default is false. Supported in Sphinx 2.0.2 and above.
Public property PassageBoundary
Ensures that passages do not cross a sentence, paragraph, or zone boundary (when used with an index that has the respective indexing settings enabled). Supported in Sphinx 2.0.1 and above.
Public property QueryMode
Gets or sets a value indicating whether to handle the highlight words parameter of the BuildExcerpts method as a query in extended syntax, or as a bag of words (default behavior). Default is false. Supported in Sphinx 1.10.1 and above.
Public property SinglePassage
Gets or sets a value indicating whether to extract the single best passage only. Default is false.
Public property StartPassageId
Specifies the starting value of %PASSAGE_ID% macro (that gets detected and expanded in BeforeMatch, AfterMatch. Default is 1. Supported in Sphinx 1.10.1 and above.
Public property UseBoundaries
Gets or sets a value indicating whether to use boundaries.
Public property WeightOrder
Gets or sets a value indicating whether to sort the extracted passages in order of relevance (decreasing weight), or in order of appearance in the document (increasing position). Default is false.

See Also