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
This commit is contained in:
parent
646f7acf5c
commit
0fb81d6643
|
@ -11,13 +11,16 @@ using `term`, `terms` or `prefix` queries/filters (including the
|
||||||
specific `ids` query/filter).
|
specific `ids` query/filter).
|
||||||
|
|
||||||
The `_id` field can be enabled to be indexed, and possibly stored,
|
The `_id` field can be enabled to be indexed, and possibly stored,
|
||||||
using:
|
using the appropriate mapping attributes:
|
||||||
|
|
||||||
[source,js]
|
[source,js]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
{
|
{
|
||||||
"tweet" : {
|
"tweet" : {
|
||||||
"_id" : {"index": "not_analyzed", "store" : false }
|
"_id" : {
|
||||||
|
"index" : "not_analyzed",
|
||||||
|
"store" : true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
|
|
Loading…
Reference in New Issue