---
schema_version: "1"
id: 9879a897beed770309fdc02342ce658db0430e32d51921e933f8ab415d725d02
title: CustomIndex
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_meta/meta_customindex.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_customindex.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 81abf3532c430be663c436271def0da984d977595a89a35e8bf52457d0da8a59
description: Represents an index used to increase the speed of queries.This type extends the Metadata metadata type and inherits its fullName field.
---
# CustomIndex

Represents an index used to increase the speed of queries.This type extends the Metadata metadata type and inherits its fullName field.

## File Suffix and Directory Location

CustomIndex components have the suffix .indx-meta and are stored in the customindexfolder.

## Version

CustomIndex is available in API versions 50.0 and later.

## Special Access Rules

To use this metadata and create a custom index, review [Indexes](https://developer.salesforce.com/docs/atlas.en-us.264.0.salesforce_large_data_volumes_bp.meta/salesforce_large_data_volumes_bp/ldv_deployments_infrastructure_indexes.htm) in Best Practices for Deployments with Large Data Volumes, and then contact Salesforce Customer Support.

## Fields

| Field Name | Field Type | Description |
| --- | --- | --- |
| allowNullValues | boolean | Indicates whether null values are allowed in the index (true) or not (false). The default value is false. |
| booleanIndexedValue | boolean | Indicates whether boolean fields are indexed (true) or not (false). Available in API version 61.0 and later. |

## Declarative Metadata Sample Definition

The following is an example of a CustomIndex component.

<?xml version="1.0" encoding="UTF-8" ?>
<CustomIndex xmlns="http://soap.sforce.com/2006/04/metadata">
    <allowNullValues\>false</allowNullValues\>
    <booleanIndexedValue\>true</booleanIndexedValue\>
</CustomIndex\>

## Wildcard Support in the Manifest File

The wildcard character \* (asterisk) in the package.xml manifest file doesn’t apply to metadata types for feature settings. The wildcard applies only when retrieving all settings, not for an individual setting. For details, see [Settings](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_meta.meta/api_meta/meta_settings.htm). For information about using the manifest file, see [Deploying and Retrieving Metadata with the Zip File](https://developer.salesforce.com/docs/atlas.en-us.264.0.api_meta.meta/api_meta/file_based_zip_file.htm).