1
0

glossary.asciidoc 9.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236
  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-leader-index]] leader index ::
  79. Leader indices are the source indices for <<glossary-ccr,{ccr}>>. They exist
  80. on remote clusters and are replicated to
  81. <<glossary-follower-index,follower indices>>.
  82. [[glossary-mapping]] mapping ::
  83. A mapping is like a _schema definition_ in a relational database. Each
  84. <<glossary-index,index>> has a mapping, which defines a <<glossary-type,type>>,
  85. plus a number of index-wide settings.
  86. +
  87. A mapping can either be defined explicitly, or it will be generated
  88. automatically when a document is indexed.
  89. [[glossary-node]] node ::
  90. A node is a running instance of Elasticsearch which belongs to a
  91. <<glossary-cluster,cluster>>. Multiple nodes can be started on a single
  92. server for testing purposes, but usually you should have one node per
  93. server.
  94. +
  95. At startup, a node will use unicast to discover an existing cluster with
  96. the same cluster name and will try to join that cluster.
  97. [[glossary-primary-shard]] primary shard ::
  98. Each document is stored in a single primary <<glossary-shard,shard>>. When
  99. you index a document, it is indexed first on the primary shard, then
  100. on all <<glossary-replica-shard,replicas>> of the primary shard.
  101. +
  102. By default, an <<glossary-index,index>> has one primary shard. You can specify
  103. more primary shards to scale the number of <<glossary-document,documents>>
  104. that your index can handle.
  105. +
  106. You cannot change the number of primary shards in an index, once the index is
  107. created. However, an index can be split into a new index using the
  108. <<indices-split-index, split API>>.
  109. +
  110. See also <<glossary-routing,routing>>
  111. [[glossary-query]] query ::
  112. A request for information from {es}. You can think of a query as a question,
  113. written in a way {es} understands. A search consists of one or more queries
  114. combined.
  115. +
  116. There are two types of queries: _scoring queries_ and _filters_. For more
  117. information about query types, see <<query-filter-context>>.
  118. [[glossary-recovery]] recovery ::
  119. The process of syncing a shard copy from a source shard. Upon completion, the recovery process makes the shard copy available for queries.
  120. +
  121. Recovery automatically occurs anytime a shard moves to a different node in the same cluster, including:
  122. * Node startup
  123. * Node failure
  124. * Index shard replication
  125. * Snapshot restoration
  126. [[glossary-replica-shard]] replica shard ::
  127. Each <<glossary-primary-shard,primary shard>> can have zero or more
  128. replicas. A replica is a copy of the primary shard, and has two
  129. purposes:
  130. +
  131. 1. increase failover: a replica shard can be promoted to a primary
  132. shard if the primary fails
  133. 2. increase performance: get and search requests can be handled by
  134. primary or replica shards.
  135. +
  136. By default, each primary shard has one replica, but the number of
  137. replicas can be changed dynamically on an existing index. A replica
  138. shard will never be started on the same node as its primary shard.
  139. [[glossary-routing]] routing ::
  140. When you index a document, it is stored on a single
  141. <<glossary-primary-shard,primary shard>>. That shard is chosen by hashing
  142. the `routing` value. By default, the `routing` value is derived from
  143. the ID of the document or, if the document has a specified parent
  144. document, from the ID of the parent document (to ensure that child and
  145. parent documents are stored on the same shard).
  146. +
  147. This value can be overridden by specifying a `routing` value at index
  148. time, or a <<mapping-routing-field,routing
  149. field>> in the <<glossary-mapping,mapping>>.
  150. [[glossary-shard]] shard ::
  151. A shard is a single Lucene instance. It is a low-level “worker” unit
  152. which is managed automatically by Elasticsearch. An index is a logical
  153. namespace which points to <<glossary-primary-shard,primary>> and
  154. <<glossary-replica-shard,replica>> shards.
  155. +
  156. Other than defining the number of primary and replica shards that an
  157. index should have, you never need to refer to shards directly.
  158. Instead, your code should deal only with an index.
  159. +
  160. Elasticsearch distributes shards amongst all <<glossary-node,nodes>> in the
  161. <<glossary-cluster,cluster>>, and can move shards automatically from one
  162. node to another in the case of node failure, or the addition of new
  163. nodes.
  164. [[glossary-source_field]] source field ::
  165. By default, the JSON document that you index will be stored in the
  166. `_source` field and will be returned by all get and search requests.
  167. This allows you access to the original object directly from search
  168. results, rather than requiring a second step to retrieve the object
  169. from an ID.
  170. [[glossary-term]] term ::
  171. A term is an exact value that is indexed in Elasticsearch. The terms
  172. `foo`, `Foo`, `FOO` are NOT equivalent. Terms (i.e. exact values) can
  173. be searched for using _term_ queries.
  174. +
  175. See also <<glossary-text,text>> and <<glossary-analysis,analysis>>.
  176. [[glossary-text]] text ::
  177. Text (or full text) is ordinary unstructured text, such as this
  178. paragraph. By default, text will be <<glossary-analysis,analyzed>> into
  179. <<glossary-term,terms>>, which is what is actually stored in the index.
  180. +
  181. Text <<glossary-field,fields>> need to be analyzed at index time in order to
  182. be searchable as full text, and keywords in full text queries must be
  183. analyzed at search time to produce (and search for) the same terms
  184. that were generated at index time.
  185. +
  186. See also <<glossary-term,term>> and <<glossary-analysis,analysis>>.
  187. [[glossary-type]] type ::
  188. A type used to represent the _type_ of document, e.g. an `email`, a `user`, or a `tweet`.
  189. Types are deprecated and are in the process of being removed. See <<removal-of-types>>.