# SEARCHSTATUSFLAGS

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Reference](https://developer.m-files.com/APIs/gRPC-API/Reference/index.md) > [Messages](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.SEARCHSTATUSFLAGS/

Search status flags.

- **Full name:** `MFiles.SEARCHSTATUSFLAGS`
- **Proto file:** [`mfiles/enums.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/enums.proto)

<a id="fields"></a>

## Fields

| Field | Type | Number | Description |
|---|---|---|---|
| <a id="f-all"></a>`all` | `bool` | 1 | Specifies all flags set; Including any future flags. |
| <a id="f-multiphase_object_type_search_needed"></a>`multiphase_object_type_search_needed` | `bool` | 2 | Multi-phase OT search is needed. |
| <a id="f-wildcard_expansion_limit_exceeded"></a>`wildcard_expansion_limit_exceeded` | `bool` | 3 | Wildcard expansion limit has been exceeded (but some results has been returned anyway). |
| <a id="f-may_contain_stale_data"></a>`may_contain_stale_data` | `bool` | 4 | Data returned by search may be out of date. |
| <a id="f-resorted_to_default_sort"></a>`resorted_to_default_sort` | `bool` | 5 | Requested sorting is not supported and result set was established using the default sorting (relevance). |
| <a id="f-resorted_to_default_sort_too_many_results"></a>`resorted_to_default_sort_too_many_results` | `bool` | 6 | Requested sorting is not supported and result set was established using the default sorting (relevance) because there are too many matching results for sorting. |
| <a id="f-sorted_by_engine"></a>`sorted_by_engine` | `bool` | 7 | Data returned by search was sorted by the engine (Global Sorting). |

<a id="used-by-methods"></a>

## Used by methods

- [IRPCSearch.GetFacetValues](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSearch/GetFacetValues/index.md): Retrieves the facet values for the documents that satisfy the specified search conditions.
- [IRPCSearch.GetFolderContents](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSearch/GetFolderContents/index.md): Lists the contents of a view or a view level: subviews, grouping folders and objects.
- [IRPCSearch.GetFolderContentsOrDelta](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSearch/GetFolderContentsOrDelta/index.md): Gets the contents of the specified folder, or a delta that indicates changes to document vault data since the logical timestamp known by the caller.
- [IRPCSearch.GetFolderObjectsCount](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSearch/GetFolderObjectsCount/index.md): Gets the count of objects in the specified folder.
- [IRPCSearch.SearchObjects](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSearch/SearchObjects/index.md): Searches the vault for objects that match the given conditions.

<a id="used-in-fields"></a>

## Used in fields

- [`GetFolderObjectsCountResponse.psearchstatusflags`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSearch/GetFolderObjectsCount/index.md#response): Receives search status flags.
- [`GetFacetValuesResponse.psearchstatusflags`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSearch/GetFacetValues/index.md#response): Receives search status flags.
- [`SearchObjectsResponse.options`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSearch/SearchObjects/index.md#response): Search status flags, for example `resorted_to_default_sort` when the requested sorting was replaced by relevance order.
- [`GetFolderContentsOrDeltaResponse.psearchstatusflags`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSearch/GetFolderContentsOrDelta/index.md#response): Receives search status flags.
- [`GetFolderContentsResponse.options`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSearch/GetFolderContents/index.md#response): Search status flags.
