SnippetsOptionsAllowEmpty Property

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.

Definition

Namespace: SphinxConnector.FluentApi
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
C#
public bool AllowEmpty { get; set; }

Property Value

Boolean
true to allow an empty string to be returned as highlighting result; otherwise, false.

See Also