Browse Source

Docs: Update id-field.asciidoc

It is strange to provide an example with `"store" : false` when talking about possibility of enabling the field to be stored.
Broke the line in the mapping in two lines for better readability.
More verbose sentence above the mapping.

Closes #7894
Sergii Golubev 11 years ago
parent
commit
0fb81d6643
1 changed files with 5 additions and 2 deletions
  1. 5 2
      docs/reference/mapping/fields/id-field.asciidoc

+ 5 - 2
docs/reference/mapping/fields/id-field.asciidoc

@@ -11,13 +11,16 @@ using `term`, `terms` or `prefix` queries/filters (including the
 specific `ids` query/filter).
 
 The `_id` field can be enabled to be indexed, and possibly stored,
-using:
+using the appropriate mapping attributes:
 
 [source,js]
 --------------------------------------------------
 {
     "tweet" : {
-        "_id" : {"index": "not_analyzed", "store" : false }
+        "_id" : {
+            "index" : "not_analyzed",
+            "store" : true
+        }
     }
 }
 --------------------------------------------------