---
title: "admReindex"
canonical: "https://support.appfire.com/space/PSJ/15481357/admReindex"
format: markdown
---
> Macro (aura-html)


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | admReindex([useBackgroundReindexing]) | **Package** | adm |
| **Alias** |  | **Pkg Usage** | reindex([useBackgroundReindexing]) |

## Description

> Macro (excerpt)
> 
> Triggers a re-index for all issues across a Jira instance.

Triggers a re-index for all issues across a Jira instance and you can also specify an optional **useBackgroundReindexing **parameter to run re-index in the background.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| useBackgroundReindexing | Boolean (true/false) | No | 'True' - re-index issues in background.'False' or missing - lock Jira and rebuild index. |

## Return Type

**Number**

Returns a number representing the duration of the re-index in milliseconds.

> ⚠️ The function is synchronous. Even though the task will be run on multiple threads, the current thread will be stuck inside the function until the reiindex is done.

## See also

> Macro (contentbylabel)