# Doclib Reindex
Triggers a full reindex of a document library's search index by processing rows from an Excel file.
Filename pattern: filename must contain DoclibReIndex (case-insensitive).
Example: 20240115 DoclibReIndex fix.xlsx
# Columns
| Name | Required | Description |
|---|---|---|
| Url / SiteUrl | Conditional | Server-relative URL of the document library. Required when MatterCode is not provided. |
| MatterCode | Conditional | Matter code used to resolve document libraries from the matter list. Required when Url is not provided. Reindexes all document libraries for the matter. |
| ClientCode | No | Client code used together with MatterCode to identify the matter. |
Either Url or MatterCode must be provided.
# Behavior
Calls ReIndexList() on each targeted document library, which marks the library for a full crawl by the SharePoint search crawler on its next scheduled run.
# Related links
- Doclib Set handler — configure document library settings