---
title: Mapper size plugin
description: The mapper-size plugin provides the _size metadata field which, when enabled, indexes the size in bytes of the original _source field. This plugin can...
url: https://www.elastic.co/elastic/docs-builder/docs/2422/reference/elasticsearch/plugins/mapper-size
---

# Mapper size plugin
The mapper-size plugin provides the `_size` metadata field which, when enabled, indexes the size in bytes of the original [`_source`](https://www.elastic.co/elastic/docs-builder/docs/2422/reference/elasticsearch/mapping-reference/mapping-source-field) field.

## Installation

This plugin can be installed using the plugin manager:
```sh
sudo bin/elasticsearch-plugin install mapper-size
```

The plugin must be installed on every node in the cluster, and each node must be restarted after installation.
You can download this plugin for [offline install](https://www.elastic.co/elastic/docs-builder/docs/2422/reference/elasticsearch/plugins/plugin-management-custom-url) from [https://artifacts.elastic.co/downloads/elasticsearch-plugins/mapper-size/mapper-size-9.2.3.zip](https://artifacts.elastic.co/downloads/elasticsearch-plugins/mapper-size/mapper-size-9.2.3.zip). To verify the `.zip` file, use the [SHA hash](https://artifacts.elastic.co/downloads/elasticsearch-plugins/mapper-size/mapper-size-9.2.3.zip.sha512) or [ASC key](https://artifacts.elastic.co/downloads/elasticsearch-plugins/mapper-size/mapper-size-9.2.3.zip.asc).

## Removal

The plugin can be removed with the following command:
```sh
sudo bin/elasticsearch-plugin remove mapper-size
```

The node must be stopped before removing the plugin.