Skip to content
This repository was archived by the owner on Sep 21, 2021. It is now read-only.

Commit fbd5b5a

Browse files
Update 05_Document.asciidoc
Fixed bad entities
1 parent eb30455 commit fbd5b5a

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

030_Data/05_Document.asciidoc

+11-11
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,19 @@ _metadata_—information _about_ the document.((("metadata, document"))) Th
4646
elements are as follows:
4747

4848

49-
`_index`::
49+
`_index`::
5050
Where the document lives
5151

52-
`_type`::
52+
`_type`::
5353
The class of object that the document represents
5454

55-
`_id`::
55+
`_id`::
5656
The unique identifier for the document
5757

58-
==== _index
58+
==== _index
5959

6060
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")))
6262

6363
[TIP]
6464
====
@@ -74,7 +74,7 @@ but for now we will let Elasticsearch create the index for us. All we have to
7474
do is choose an index name. This name must be lowercase, cannot begin with an
7575
underscore, and cannot contain commas. Let's use `website` as our index name.
7676

77-
==== _type
77+
==== _type
7878

7979
In applications, we use objects to represent _things_ such as a user, a blog
8080
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.
8383

8484
In a relational database, we usually store objects of the same class in the
8585
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
8787
class of _thing_, because they share the same data structure.
8888

8989
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
9696
we will rely on Elasticsearch to detect our document's data structure
9797
automatically.
9898

99-
A `&#x5f;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
100100
underscore or contain commas.((("types", "names of"))) We will use `blog` for our type name.
101101

102-
==== &#x5f;id
102+
==== _id
103103

104-
The _ID_ is a string that,((("id", "&#x5f;id, in document metadata"))) when combined with the `&#x5f;index` and `&#x5f;type`,
104+
The _ID_ is a string that,((("id", "_id, in document metadata"))) when combined with the `_index` and `_type`,
105105
uniquely identifies a document in Elasticsearch. When creating a new document,
106-
you can either provide your own `&#x5f;id` or let Elasticsearch generate one for
106+
you can either provide your own `_id` or let Elasticsearch generate one for
107107
you.
108108

109109
==== Other Metadata

0 commit comments

Comments
 (0)