[DOCS] Fix nested root object indexing documentation
Types can no longer be specified when indexing, see: https://github.com/elasticsearch/elasticsearch/pull/4552
This commit is contained in:
parent
76511158b5
commit
a1a03a184c
|
@ -1,16 +1,13 @@
|
|||
[[mapping-root-object-type]]
|
||||
=== Root Object Type
|
||||
|
||||
The root object mapping is an
|
||||
<<mapping-object-type,object type mapping>> that
|
||||
maps the root object (the type itself). On top of all the different
|
||||
mappings that can be set using the
|
||||
<<mapping-object-type,object type mapping>>, it
|
||||
allows for additional, type level mapping definitions.
|
||||
The root object mapping is an <<mapping-object-type,object type mapping>> that
|
||||
maps the root object (the type itself). It supports all of the different
|
||||
mappings that can be set using the <<mapping-object-type,object type mapping>>.
|
||||
|
||||
The root object mapping allows to index a JSON document that either
|
||||
starts with the actual mapping type, or only contains its fields. For
|
||||
example, the following `tweet` JSON can be indexed:
|
||||
The root object mapping allows to index a JSON document that only contains its
|
||||
fields. For example, the following `tweet` JSON can be indexed without
|
||||
specifying the `tweet` type in the document itself:
|
||||
|
||||
[source,js]
|
||||
--------------------------------------------------
|
||||
|
@ -19,20 +16,6 @@ example, the following `tweet` JSON can be indexed:
|
|||
}
|
||||
--------------------------------------------------
|
||||
|
||||
But, also the following JSON can be indexed:
|
||||
|
||||
[source,js]
|
||||
--------------------------------------------------
|
||||
{
|
||||
"tweet" : {
|
||||
"message" : "This is a tweet!"
|
||||
}
|
||||
}
|
||||
--------------------------------------------------
|
||||
|
||||
Out of the two, it is preferable to use the document *without* the type
|
||||
explicitly set.
|
||||
|
||||
[float]
|
||||
==== Index / Search Analyzers
|
||||
|
||||
|
|
Loading…
Reference in New Issue