glossary.asciidoc 9.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250
  1. [glossary]
  2. [[glossary]]
  3. = Glossary of terms
  4. [glossary]
  5. [[glossary-analysis]] analysis ::
  6. Analysis is the process of converting <<glossary-text,full text>> to
  7. <<glossary-term,terms>>. Depending on which analyzer is used, these phrases:
  8. `FOO BAR`, `Foo-Bar`, `foo,bar` will probably all result in the
  9. terms `foo` and `bar`. These terms are what is actually stored in
  10. the index.
  11. +
  12. A full text query (not a <<glossary-term,term>> query) for `FoO:bAR` will
  13. also be analyzed to the terms `foo`,`bar` and will thus match the
  14. terms stored in the index.
  15. +
  16. It is this process of analysis (both at index time and at search time)
  17. that allows Elasticsearch to perform full text queries.
  18. +
  19. Also see <<glossary-text,text>> and <<glossary-term,term>>.
  20. [[glossary-cluster]] cluster ::
  21. A cluster consists of one or more <<glossary-node,nodes>> which share the
  22. same cluster name. Each cluster has a single master node which is
  23. chosen automatically by the cluster and which can be replaced if the
  24. current master node fails.
  25. [[glossary-ccr]] {ccr} (CCR)::
  26. The {ccr} feature enables you to replicate indices in remote clusters to your
  27. local cluster. For more information, see
  28. {stack-ov}/xpack-ccr.html[{ccr-cap}].
  29. [[glossary-ccs]] {ccs} (CCS)::
  30. The {ccs} feature enables any node to act as a federated client across
  31. multiple clusters. See <<modules-cross-cluster-search>>.
  32. [[glossary-document]] document ::
  33. A document is a JSON document which is stored in Elasticsearch. It is
  34. like a row in a table in a relational database. Each document is
  35. stored in an <<glossary-index,index>> and has a <<glossary-type,type>> and an
  36. <<glossary-id,id>>.
  37. +
  38. A document is a JSON object (also known in other languages as a hash /
  39. hashmap / associative array) which contains zero or more
  40. <<glossary-field,fields>>, or key-value pairs.
  41. +
  42. The original JSON document that is indexed will be stored in the
  43. <<glossary-source_field,`_source` field>>, which is returned by default when
  44. getting or searching for a document.
  45. [[glossary-field]] field ::
  46. A <<glossary-document,document>> contains a list of fields, or key-value
  47. pairs. The value can be a simple (scalar) value (eg a string, integer,
  48. date), or a nested structure like an array or an object. A field is
  49. similar to a column in a table in a relational database.
  50. +
  51. The <<glossary-mapping,mapping>> for each field has a field _type_ (not to
  52. be confused with document <<glossary-type,type>>) which indicates the type
  53. of data that can be stored in that field, eg `integer`, `string`,
  54. `object`. The mapping also allows you to define (amongst other things)
  55. how the value for a field should be analyzed.
  56. [[glossary-filter]] filter ::
  57. A filter is a non-scoring <<glossary-query,query>>, meaning that it does not score documents.
  58. It is only concerned about answering the question - "Does this document match?".
  59. The answer is always a simple, binary yes or no. This kind of query is said to be made
  60. in a <<query-filter-context,filter context>>,
  61. hence it is called a filter. Filters are simple checks for set inclusion or exclusion.
  62. In most cases, the goal of filtering is to reduce the number of documents that have to be examined.
  63. [[glossary-follower-index]] follower index ::
  64. Follower indices are the target indices for <<glossary-ccr,{ccr}>>. They exist
  65. in your local cluster and replicate <<glossary-leader-index,leader indices>>.
  66. [[glossary-id]] id ::
  67. The ID of a <<glossary-document,document>> identifies a document. The
  68. `index/id` of a document must be unique. If no ID is provided,
  69. then it will be auto-generated. (also see <<glossary-routing,routing>>)
  70. [[glossary-index]] index ::
  71. An index is like a _table_ in a relational database. It has a
  72. <<glossary-mapping,mapping>> which contains a <<glossary-type,type>>,
  73. which contains the <<glossary-field,fields>> in the index.
  74. +
  75. An index is a logical namespace which maps to one or more
  76. <<glossary-primary-shard,primary shards>> and can have zero or more
  77. <<glossary-replica-shard,replica shards>>.
  78. [[glossary-index-alias]] index alias ::
  79. +
  80. --
  81. // tag::index-alias-def[]
  82. An index alias is a secondary name
  83. used to refer to one or more existing indices.
  84. Most {es} APIs accept an index alias
  85. in place of an index name.
  86. // end::index-alias-def[]
  87. See <<indices-add-alias>>.
  88. --
  89. [[glossary-leader-index]] leader index ::
  90. Leader indices are the source indices for <<glossary-ccr,{ccr}>>. They exist
  91. on remote clusters and are replicated to
  92. <<glossary-follower-index,follower indices>>.
  93. [[glossary-mapping]] mapping ::
  94. A mapping is like a _schema definition_ in a relational database. Each
  95. <<glossary-index,index>> has a mapping, which defines a <<glossary-type,type>>,
  96. plus a number of index-wide settings.
  97. +
  98. A mapping can either be defined explicitly, or it will be generated
  99. automatically when a document is indexed.
  100. [[glossary-node]] node ::
  101. A node is a running instance of Elasticsearch which belongs to a
  102. <<glossary-cluster,cluster>>. Multiple nodes can be started on a single
  103. server for testing purposes, but usually you should have one node per
  104. server.
  105. +
  106. At startup, a node will use unicast to discover an existing cluster with
  107. the same cluster name and will try to join that cluster.
  108. [[glossary-primary-shard]] primary shard ::
  109. Each document is stored in a single primary <<glossary-shard,shard>>. When
  110. you index a document, it is indexed first on the primary shard, then
  111. on all <<glossary-replica-shard,replicas>> of the primary shard.
  112. +
  113. By default, an <<glossary-index,index>> has one primary shard. You can specify
  114. more primary shards to scale the number of <<glossary-document,documents>>
  115. that your index can handle.
  116. +
  117. You cannot change the number of primary shards in an index, once the index is
  118. created. However, an index can be split into a new index using the
  119. <<indices-split-index, split API>>.
  120. +
  121. See also <<glossary-routing,routing>>
  122. [[glossary-query]] query ::
  123. A request for information from {es}. You can think of a query as a question,
  124. written in a way {es} understands. A search consists of one or more queries
  125. combined.
  126. +
  127. There are two types of queries: _scoring queries_ and _filters_. For more
  128. information about query types, see <<query-filter-context>>.
  129. [[glossary-recovery]] recovery ::
  130. The process of syncing a shard copy from a source shard. Upon completion, the recovery process makes the shard copy available for queries.
  131. +
  132. Recovery automatically occurs anytime a shard moves to a different node in the same cluster, including:
  133. * Node startup
  134. * Node failure
  135. * Index shard replication
  136. * Snapshot restoration
  137. [[glossary-replica-shard]] replica shard ::
  138. Each <<glossary-primary-shard,primary shard>> can have zero or more
  139. replicas. A replica is a copy of the primary shard, and has two
  140. purposes:
  141. +
  142. 1. increase failover: a replica shard can be promoted to a primary
  143. shard if the primary fails
  144. 2. increase performance: get and search requests can be handled by
  145. primary or replica shards.
  146. +
  147. By default, each primary shard has one replica, but the number of
  148. replicas can be changed dynamically on an existing index. A replica
  149. shard will never be started on the same node as its primary shard.
  150. [[glossary-routing]] routing ::
  151. When you index a document, it is stored on a single
  152. <<glossary-primary-shard,primary shard>>. That shard is chosen by hashing
  153. the `routing` value. By default, the `routing` value is derived from
  154. the ID of the document or, if the document has a specified parent
  155. document, from the ID of the parent document (to ensure that child and
  156. parent documents are stored on the same shard).
  157. +
  158. This value can be overridden by specifying a `routing` value at index
  159. time, or a <<mapping-routing-field,routing
  160. field>> in the <<glossary-mapping,mapping>>.
  161. [[glossary-shard]] shard ::
  162. A shard is a single Lucene instance. It is a low-level “worker” unit
  163. which is managed automatically by Elasticsearch. An index is a logical
  164. namespace which points to <<glossary-primary-shard,primary>> and
  165. <<glossary-replica-shard,replica>> shards.
  166. +
  167. Other than defining the number of primary and replica shards that an
  168. index should have, you never need to refer to shards directly.
  169. Instead, your code should deal only with an index.
  170. +
  171. Elasticsearch distributes shards amongst all <<glossary-node,nodes>> in the
  172. <<glossary-cluster,cluster>>, and can move shards automatically from one
  173. node to another in the case of node failure, or the addition of new
  174. nodes.
  175. [[glossary-source_field]] source field ::
  176. By default, the JSON document that you index will be stored in the
  177. `_source` field and will be returned by all get and search requests.
  178. This allows you access to the original object directly from search
  179. results, rather than requiring a second step to retrieve the object
  180. from an ID.
  181. [[glossary-term]] term ::
  182. A term is an exact value that is indexed in Elasticsearch. The terms
  183. `foo`, `Foo`, `FOO` are NOT equivalent. Terms (i.e. exact values) can
  184. be searched for using _term_ queries.
  185. +
  186. See also <<glossary-text,text>> and <<glossary-analysis,analysis>>.
  187. [[glossary-text]] text ::
  188. Text (or full text) is ordinary unstructured text, such as this
  189. paragraph. By default, text will be <<glossary-analysis,analyzed>> into
  190. <<glossary-term,terms>>, which is what is actually stored in the index.
  191. +
  192. Text <<glossary-field,fields>> need to be analyzed at index time in order to
  193. be searchable as full text, and keywords in full text queries must be
  194. analyzed at search time to produce (and search for) the same terms
  195. that were generated at index time.
  196. +
  197. See also <<glossary-term,term>> and <<glossary-analysis,analysis>>.
  198. [[glossary-type]] type ::
  199. A type used to represent the _type_ of document, e.g. an `email`, a `user`, or a `tweet`.
  200. Types are deprecated and are in the process of being removed. See <<removal-of-types>>.