SearchMode
Search mode enumeration.
| Full name | MFiles.SearchMode |
|---|---|
| Proto file | mfiles/enums.proto |
Values
| Name | Number | Description |
|---|---|---|
SEARCH_MODE_DEFAULT | 0 | Default mode (always the case in versions before 19.1). The search is executed using the full-text search engine if it contains an AnyField condition. Otherwise the search is executed against the database. |
SEARCH_MODE_FAVOR_FULL_TEXT_SEARCH | 1 | Favors executing the search with the full-text search engine if technically possible. The search is executed using the full-text search engine even if no AnyField condition exists if the search conditions are supported by the target search index. In other cases the search is executed against the database. |
SEARCH_MODE_REQUIRE_FULL_TEXT_SEARCH | 2 | Requires executing the search with the full-text search engine. If the search conditions are not supported by the target search index, an error is returned. |
SEARCH_MODE_REQUIRE_DATABASE_SEARCH | 3 | Requires executing the search against the database. If the search conditions are not compatible with executing the search against the database, an error is returned. |
Used in fields
SearchTarget.mode-- Whether to prefer, require or avoid the full-text search engine. See SearchMode.