SearchFlags
Search flags.
Leave unset for the usual search: the latest version of each object, all object types in one relevance-ranked result list.
| Full name | MFiles.SearchFlags |
|---|---|
| Proto file | mfiles/enums.proto |
Fields
| Field | Type | Number | Description |
|---|---|---|---|
all | bool | 1 | All flags set, including any future flags. Do not use in searches. |
look_in_all_versions | bool | 2 | Also match older versions; each object is returned once. Cannot be combined with sorting, and GetObjectCountInSearch rejects it. |
return_latest_visible_version | bool | 3 | Return the latest visible version for each matching document. |
separately_search_in_each_object_type | bool | 4 | Search each object type separately and merge the results. The limit then applies to each object type, and pages_with_more_results lists the object types whose results were cut. |
allow_quick_refresh_for_external_object_types | bool | 5 | If a search with an external ID condition on an external object type finds nothing, refresh the object type from its external database and search again. |
disable_relevancy_ranking | bool | 6 | Do not rank the results by relevance. |
separately_search_specific_object_types | bool | 7 | Allows only specified object types to be searched separately. |
include_unmanaged_objects | bool | 8 | Extends the search to include unmanaged objects. |
individual_limit_for_each_external_repository | bool | 9 | Ensures that up to the specified maximum number of results are returned from each repository. |
Used by methods
- IRPCSearch.GetObjectCountInSearch -- Counts the objects that match the given conditions without returning them.
- IRPCSearch.GetObjectsCountForNotifications -- Gets the objects count for notification badge.
- IRPCSearch.SearchObjects -- Searches the vault for objects that match the given conditions.
Used in fields
SearchDef.options-- Search flags. This affects the resulting object version set and also distinct view level values displayed inside this search.GetObjectCountInSearchRequest.searchflags-- Search flags.look_in_all_versionsandreturn_latest_visible_versionare not supported and fail with "Invalid search condition."GetObjectsCountForNotificationsRequest.search_flags-- Search flags. Supports 'INCLUDE_UNMANAGED_OBJECTS' flag only.SearchObjectsRequest.options-- Search flags. Unset searches the latest versions of all object types as one relevance-ranked list. See SearchFlags.