Skip to main content

SearchMode

Search mode enumeration.

NameDescriptionValue
SEARCH_MODE_DEFAULTDefault 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_SEARCHFavors 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_SEARCHRequires 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_SEARCHRequires 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