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


 


|  |  |  |  |
| --- | --- | --- | --- |
| **Syntax** | isInReindexing()  
or  
isInReindexing(foreground) | **Package** |  |
| **Alias** |  | **Pkg Usage** |  |

## Description

> Macro (excerpt)
> 
> Returns true if it is called from the indexing thread.

Returns true if it is called from the indexing thread.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| foreground | boolean | No | If true, it will check for hard reindexing, otherwise will check for background reindexing. |

## Return Type

**boolean**

Useful to avoid reindexing on custom fields. If param is missing return true if either of indexing methods are found.

## See also

> Macro (contentbylabel)