Snippets OptionsAllow Empty 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
true to allow an empty string to be returned as highlighting result; otherwise, false.
Assembly: SphinxConnector (in SphinxConnector.dll) Version: 6.1.0
C#
public bool AllowEmpty { get; set; }VB
Public Property AllowEmpty As Boolean
Get
SetProperty Value
Booleantrue to allow an empty string to be returned as highlighting result; otherwise, false.