Close
dtSearch Engine API for .NET Framework 2.x-4.x 2023.02
Options Class

Sets indexing and searching option settings.

dtSearch::Engine::Options
public class Options;

For more information about how these options affect indexing and searching, see Options Overview in dtSearchApiRef.chm. 

When an Options object is first created, it is populated with the settings currently in effect. After you change one or more settings, call Save() to apply the changes. The new settings will apply to the currently-executing thread and to any newly-created threads. It will not affect other threads that are already running. 

If the contents of a configuration file such as TextFieldsFile changes, but the filename is not changed, set UpdateFiles=true to indicate that dtSearch should discard any internally-cached copies of configuration files and re-read them from disk. 

Options cannot be changed within a callback function such as DataSource.GetNextDoc or IIndexStatusHandler.OnProgressUpdate. This is because dtSearch assumes that the options in effect for a thread at the start of a job will remain in effect until that job completes.  

dtSearch.Engine.Options opts = new dtSearch.Engine.Options(); opts.MaxStoredFieldSize = 998; opts.Save();