summaryrefslogtreecommitdiff
path: root/docs/reference/mapping/fields/index-field.asciidoc
blob: 96a320b9fa5edb4b65c1ff74fa21d77fd81c7cf6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
[[mapping-index-field]]
=== `_index`

The ability to store in a document the index it belongs to. By default
it is disabled, in order to enable it, the following mapping should be
defined:

[source,js]
--------------------------------------------------
{
    "tweet" : {
        "_index" : { "enabled" : true }
    }
}
--------------------------------------------------