The Options object enables you to specify how the dtSearch engine will process text being indexed or searched.
File: Options.java
Package: com.dtsearch.engine
Method |
Description |
---|---|
Get option settings currently in effect | |
Stemming rules for stemming searches (default: "stemming.dat") | |
Character to insert between multiple instances of a stored field in a single document | |
TextFlags value with text-processing options | |
Indicates Unicode ranges that are of interest when filtering. | |
Applies changes to option settings | |
Name of dtSearch alphabet file to use when parsing text into words. | |
BinaryFilesSettings value specifying the treatment of files that do not appear to be documents. | |
Define characters considered to be text if Options.setBinaryFiles is set to dtsoFilterBinary | |
Use to replace the default connectors used in search requests. | |
FieldFlags value that controls 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. | |
HyphenSettings value controlling the treatment of hyphens in text. | |
If false, any word that begins with a digit will not be indexed. | |
Obsolete | |
Character that indicates that a search term is a macro (default "@"); see Redefining Search Operators. | |
Wildcard character that matches a single digit (default: none) | |
Maximum size of a single stored field. Store 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 256k. The default is 64k. If a search matches more unique words than the maxWordsToRetrieve limit, the error code dtsErMaxWords will be returned. | |
List of noise words to skip during indexing (default: "noise.dat") | |
Character that enables phonic searching for a search term (default "#"); see Redefining Search Operators. | |
A directory that the dtSearch Engine can use to store per-user settings and temporary files. | |
File segmentation rules, used to split up long text files into logical subdocuments during indexing. | |
Character that enables stemming for a search term; see Redefining Search Operators. | |
Stemming rules for stemming searches (default: "stemming.dat") | |
Character to insert between multiple instances of a stored field in a single document | |
Character that enables synonym searching for a search term; see Redefining Search Operators. | |
Directory to use for temporary files. | |
Name of the file containing rules for extraction of field data from text files based on markers in the next | |
TextFlags value specifying options for text processing during indexing. | |
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. | |
Specifies the Unicode subranges that the filtering algorithm should look for. | |
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. | |
Comma-separated list of tags to ignore when indexing XML |
After changing settings, call save() to apply your changes, or they will have no effect. See "Options Overview" in the Overviews section for a description of the purpose of each option setting.
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.
Options cannot be changed within a callback function such as DataSource.getNextDoc. 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.