# IndexerPartitioningRule

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

Rule that specifies how the indexing is partitioned / done in parallel.

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

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

## Fields

| Field | Type | Number | Description |
|---|---|---|---|
| <a id="f-mode"></a>`mode` | [`IndexerPartitioningMode`](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.IndexerPartitioningMode/index.md) | 1 | The indexer partitioning mode. Values: `INDEXER_PARTITIONING_MODE_MODULO` (0). |
| <a id="f-partition_count"></a>`partition_count` | `uint32` | 2 | Total count of partitions / parallel indexers. |

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

## Used in fields

- [`IndexerPartition.rule`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.IndexerPartition/index.md#f-rule): Specifies how the indexing is partitioned.
