Click or drag to resize
SphinxClientBuildExcerpts Method (IEnumerableString, String, String, BuildExcerptsOptions)
Builds excerpts for the given documents using the settings from the given index name and the given options.

Namespace: SphinxConnector.NativeApi
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 3.12.6
Syntax
public IList<string> BuildExcerpts(
	IEnumerable<string> documents,
	string indexName,
	string highlightWords,
	BuildExcerptsOptions options
)

Parameters

documents
Type: System.Collections.GenericIEnumerableString
The documents to build excerpts for.
indexName
Type: SystemString
The name of the index to use settings from.
highlightWords
Type: SystemString
The highlightWords to highlight.
options
Type: SphinxConnector.NativeApiBuildExcerptsOptions
The options to use when building excerpts.

Return Value

Type: IListString
A list of strings with the excerpts.
Exceptions
ExceptionCondition
ArgumentExceptiondocuments does not contain any elements or indexName is empty.
ArgumentNullException One of documents, indexName or options is null.
SphinxClientException An error occured while executing the request. See exception message and inner exception for details.
See Also