Settings for Search. Values fall back through three levels: document → SDK → built-in default. Writes target the document only when set on a document’s settings, otherwise the SDK globally when set on SdkSettings.
using Nutrient;The SDK creates this class through factory methods or other SDK objects.
Properties
Algorithm
public string Algorithm { get; set; }Gets or sets the value of Algorithm. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.
Type: string
ContextLines
public int ContextLines { get; set; }Gets or sets the value of ContextLines. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.
Type: int
Display
public SearchDisplay Display { get; set; }Gets or sets the value of Display. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.
Type: SearchDisplay
EmitIndexPath
public string EmitIndexPath { get; set; }Gets or sets the value of EmitIndexPath. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.
Type: string
Mode
public SearchMode Mode { get; set; }Gets or sets the value of Mode. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.
Type: SearchMode
StemmingLanguage
public string StemmingLanguage { get; set; }Gets or sets the value of StemmingLanguage. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.
Type: string
TopK
public int TopK { get; set; }Gets or sets the value of TopK. Reads walk the chain: Document override → SDK override → Default. Writes go to document level if available, otherwise SDK level.
Type: int
Resource management
public void Dispose()SearchSettings implements IDisposable. Call Dispose() or use a C# using declaration to release its native handle right away. If you don’t, the handle is released when the object is garbage collected.