summaryrefslogtreecommitdiff
path: root/docs/reference/mapping/fields/index-field.asciidoc
diff options
context:
space:
mode:
Diffstat (limited to 'docs/reference/mapping/fields/index-field.asciidoc')
-rw-r--r--docs/reference/mapping/fields/index-field.asciidoc15
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/reference/mapping/fields/index-field.asciidoc b/docs/reference/mapping/fields/index-field.asciidoc
new file mode 100644
index 0000000..96a320b
--- /dev/null
+++ b/docs/reference/mapping/fields/index-field.asciidoc
@@ -0,0 +1,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 }
+ }
+}
+--------------------------------------------------