@@ -46,19 +46,19 @@ _metadata_—information _about_ the document.((("metadata, document"))) Th
46
46
elements are as follows:
47
47
48
48
49
- `_index `::
49
+ `_index `::
50
50
Where the document lives
51
51
52
- `_type `::
52
+ `_type `::
53
53
The class of object that the document represents
54
54
55
- `_id `::
55
+ `_id `::
56
56
The unique identifier for the document
57
57
58
- ==== _index
58
+ ==== _index
59
59
60
60
An _index_ is like a database in a relational database; it's the place
61
- we store and index related data.((("indices", "_index , in document metadata")))
61
+ we store and index related data.((("indices", "_index , in document metadata")))
62
62
63
63
[TIP]
64
64
====
@@ -74,7 +74,7 @@ but for now we will let Elasticsearch create the index for us. All we have to
74
74
do is choose an index name. This name must be lowercase, cannot begin with an
75
75
underscore, and cannot contain commas. Let's use `website` as our index name.
76
76
77
- ==== _type
77
+ ==== _type
78
78
79
79
In applications, we use objects to represent _things_ such as a user, a blog
80
80
post, a comment, or an email. Each object belongs to a _class_ that defines
@@ -83,7 +83,7 @@ may have a name, a gender, an age, and an email address.
83
83
84
84
In a relational database, we usually store objects of the same class in the
85
85
same table, because they share the same data structure. For the same reason, in
86
- Elasticsearch we use the same _type_ for ((("types", "_type , in document metadata)))documents that represent the same
86
+ Elasticsearch we use the same _type_ for ((("types", "_type , in document metadata)))documents that represent the same
87
87
class of _thing_, because they share the same data structure.
88
88
89
89
Every _type_ has its own <<mapping,mapping>> or schema ((("mapping (types)")))((("schema definition, types")))definition, which
@@ -96,14 +96,14 @@ We show how to specify and manage mappings in <<mapping>>, but for now
96
96
we will rely on Elasticsearch to detect our document's data structure
97
97
automatically.
98
98
99
- A `_type ` name can be lowercase or uppercase, but shouldn't begin with an
99
+ A `_type ` name can be lowercase or uppercase, but shouldn't begin with an
100
100
underscore or contain commas.((("types", "names of"))) We will use `blog` for our type name.
101
101
102
- ==== _id
102
+ ==== _id
103
103
104
- The _ID_ is a string that,((("id", "_id , in document metadata"))) when combined with the `_index ` and `_type `,
104
+ The _ID_ is a string that,((("id", "_id , in document metadata"))) when combined with the `_index ` and `_type `,
105
105
uniquely identifies a document in Elasticsearch. When creating a new document,
106
- you can either provide your own `_id ` or let Elasticsearch generate one for
106
+ you can either provide your own `_id ` or let Elasticsearch generate one for
107
107
you.
108
108
109
109
==== Other Metadata
0 commit comments