# FACETSEARCHFLAGS

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.FACETSEARCHFLAGS/

Facet search flags.

- **Full name:** `MFiles.FACETSEARCHFLAGS`
- **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-enabled"></a>`enabled` | `bool` | 2 | Facet search is enabled. |
| <a id="f-ignore_search_permissions"></a>`ignore_search_permissions` | `bool` | 3 | No ACL check on facet search. |
| <a id="f-ignore_group_permissions"></a>`ignore_group_permissions` | `bool` | 4 | No ACL check on facet groups. |
| <a id="f-ignore_value_permissions"></a>`ignore_value_permissions` | `bool` | 5 | No ACL check on individual facet values. |
| <a id="f-sort_facets"></a>`sort_facets` | `bool` | 6 | Sort facet values in descending occurrence order within each facet group. |
| <a id="f-ascending_order"></a>`ascending_order` | `bool` | 7 | If SortFacetValues is present, sort facet values in ascending occurrence order within each facet group. |

<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.GetFolderObjectsCount](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSearch/GetFolderObjectsCount/index.md): Gets the count of objects in the specified folder.

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

## Used in fields

- [`GetFolderObjectsCountRequest.facetsearchflags`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSearch/GetFolderObjectsCount/index.md#request): Facet search flags. Ignored if bFacetMode is false.
- [`GetFacetValuesRequest.facetsearchflags`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSearch/GetFacetValues/index.md#request): Facet search flags. Ignored if bFacetMode is false.
