SearchMode
Search mode enumeration.
Name | Description | Value |
---|---|---|
SEARCH_MODE_DEFAULT | 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. | 0 |
SEARCH_MODE_FAVOR_FULL_TEXT_SEARCH | 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. | 1 |
SEARCH_MODE_REQUIRE_FULL_TEXT_SEARCH | 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. | 2 |
SEARCH_MODE_REQUIRE_DATABASE_SEARCH | 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. | 3 |