Sets indexing and searching option settings.
For more information about how these options affect indexing and searching, see Options 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.
Topic |
Description |
The following tables list the members exposed by Options. | |
The methods of the Options class are listed here. | |
The properties of the Options class are listed here. |
Options Methods |
Description |
Check that a dtSearch Engine application has been correctly deployed. | |
Apply changes to Options. |
Options Properties |
Description |
Name of dtSearch alphabet file to use when parsing text into words. | |
Controls the treatment of binary files. | |
Define characters considered to be text if Options.BinaryFiles is set ot dtsoFilterBinary | |
Use to replace the default connectors used in search requests. | |
Flags that control indexing of metadata. | |
Name of the file containing a table of filename patterns for file formats that dtSearch cannot detect automatically, such as older versions of WordStar | |
Character that enables fuzzy searching for a search term (default: "%"); see Redefining Search Operators. | |
Directory where the dtSearch Engine and support files are located. | |
Controls the treatment of hyphens | |
If false, any word that begins with a digit will not be indexed. | |
Character that indicates that a search term is a macro (default: "@") | |
Wildcard character that matches a single digit (default: "="); see Redefining Search Operators. | |
Maximum depth of nested fields (value must be between 1 and 32) | |
Maximum size of a single stored field. Stored fields are field data collected during indexing that is returned in search results. | |
Words longer than the maxWordLength will be truncated when indexing. The default maxWordLength is 32. The maximum value is 128. | |
Maximum number of words that can be matched in a search. This can be any value from 16 to 512k (32-bit)or 4,096k (64-bit). The default is 64k. If a search matches more unique words than the maxWordsToRetrieve limit, the error code dtsErMaxWords (137) will be returned. | |
List of noise words to skip during indexing (default: "noise.dat") | |
Other option flags | |
Character that enables phonic searching for a search term (default "#"); see Redefining Search Operators. | |
A per-user alternative location for options files and some temporary files. Most applications should not set PrivateDir. | |
File segmentation rules, used to split up long text files into logical subdocuments during indexing. | |
Character that enables stemming for a search term (default: "~"); see Redefining Search Operators. | |
Stemming rules for stemming searches (default: "stemming.dat") | |
Delimiter between multiple instances of a stored field in a single file (default: " ") | |
Character that enables synonym searching for a search term; see Redefining Search Operators. | |
A directory that the dtSearch Engine can use to store temporary files. | |
Name of the file containing rules for extraction of field data from text files based on markers in the next | |
Flags that control text-processing options | |
By default, the dtSearch Engine collects the first 80 characters of text from a file for the title associated with each document. Use this option to change the number of characters stored, up to a maximum of 512. | |
Specifies how each input file is divided into blocks before being filtered. | |
Flags controlling the behavior of the Unicode Filtering algorithm. | |
Minimum length of a run of text when applying the Unicode Filtering algorithm. | |
Indicates Unicode ranges that are of interest when filtering. | |
Amount of overlap when automatically breaking words when applying the Unicode Filtering algorithm. | |
Set to true to force all configuration files to be re-read when Save() is called. | |
User-defined synonym sets. | |
Character used to indicate term weighting (example: apple:5); see Redefining Search Operators. | |
|
Copyright (c) 1998-2023 dtSearch Corp. All rights reserved.
|