glossary.asciidoc 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533
  1. [glossary]
  2. [[glossary]]
  3. = Glossary of terms
  4. [glossary]
  5. [[glossary-analysis]] analysis ::
  6. +
  7. --
  8. // tag::analysis-def[]
  9. Analysis is the process of converting <<glossary-text,full text>> to
  10. <<glossary-term,terms>>. Depending on which analyzer is used, these phrases:
  11. `FOO BAR`, `Foo-Bar`, `foo,bar` will probably all result in the
  12. terms `foo` and `bar`. These terms are what is actually stored in
  13. the index.
  14. A full text query (not a <<glossary-term,term>> query) for `FoO:bAR` will
  15. also be analyzed to the terms `foo`,`bar` and will thus match the
  16. terms stored in the index.
  17. It is this process of analysis (both at index time and at search time)
  18. that allows Elasticsearch to perform full text queries.
  19. Also see <<glossary-text,text>> and <<glossary-term,term>>.
  20. // end::analysis-def[]
  21. --
  22. [[glossary-api-key]] API key ::
  23. // tag::api-key-def[]
  24. A unique identifier that you can use for authentication when submitting {es} requests.
  25. When TLS is enabled, all requests must be authenticated using either basic authentication
  26. (user name and password) or an API key.
  27. // end::api-key-def[]
  28. [[glossary-auto-follow-pattern]] auto-follow pattern ::
  29. // tag::auto-follow-pattern-def[]
  30. An <<glossary-index-pattern,index pattern>> that automatically configures new indices as
  31. <<glossary-follower-index,follower indices>> for <<glossary-ccr,{ccr}>>.
  32. For more information, see {ref}/ccr-auto-follow.html#_managing_auto_follow_patterns[Managing auto follow patterns].
  33. // end::auto-follow-pattern-def[]
  34. [[glossary-cluster]] cluster ::
  35. // tag::cluster-def[]
  36. One or more <<glossary-node,nodes>> that share the
  37. same cluster name. Each cluster has a single master node, which is
  38. chosen automatically by the cluster and can be replaced if it fails.
  39. // end::cluster-def[]
  40. [[glossary-cold-phase]] cold phase ::
  41. // tag::cold-phase-def[]
  42. The third possible phase in the <<glossary-index-lifecycle,index lifecycle>>.
  43. In the cold phase, an index is no longer updated and seldom queried.
  44. The information still needs to be searchable, but it’s okay if those queries are slower.
  45. // end::cold-phase-def[]
  46. [[glossary-ccr]] {ccr} (CCR)::
  47. // tag::ccr-def[]
  48. A feature that enables you to replicate indices in remote clusters to your
  49. local cluster. For more information, see
  50. {ref}/xpack-ccr.html[{ccr-cap}].
  51. // end::ccr-def[]
  52. [[glossary-ccs]] {ccs} (CCS)::
  53. // tag::ccs-def[]
  54. A feature that enables any node to act as a federated client across
  55. multiple clusters.
  56. See {ref}/modules-cross-cluster-search.html[Search across clusters].
  57. // end::ccs-def[]
  58. [[glossary-delete-phase]] delete phase ::
  59. // tag::delete-phase-def[]
  60. The last possible phase in the <<glossary-index-lifecycle,index lifecycle>>.
  61. In the delete phase, an index is no longer needed and can safely be deleted.
  62. // end::delete-phase-def[]
  63. [[glossary-document]] document ::
  64. +
  65. --
  66. // tag::document-def[]
  67. A document is a JSON document which is stored in Elasticsearch. It is
  68. like a row in a table in a relational database. Each document is
  69. stored in an <<glossary-index,index>> and has a <<glossary-type,type>>
  70. and an <<glossary-id,id>>.
  71. A document is a JSON object (also known in other languages as a hash /
  72. hashmap / associative array) which contains zero or more
  73. <<glossary-field,fields>>, or key-value pairs.
  74. The original JSON document that is indexed will be stored in the
  75. <<glossary-source_field,`_source` field>>, which is returned by default when
  76. getting or searching for a document.
  77. // end::document-def[]
  78. --
  79. [[glossary-field]] field ::
  80. +
  81. --
  82. // tag::field-def[]
  83. A <<glossary-document,document>> contains a list of fields, or key-value
  84. pairs. The value can be a simple (scalar) value (eg a string, integer,
  85. date), or a nested structure like an array or an object. A field is
  86. similar to a column in a table in a relational database.
  87. The <<glossary-mapping,mapping>> for each field has a field _type_ (not to
  88. be confused with document <<glossary-type,type>>) which indicates the type
  89. of data that can be stored in that field, eg `integer`, `string`,
  90. `object`. The mapping also allows you to define (amongst other things)
  91. how the value for a field should be analyzed.
  92. // end::field-def[]
  93. --
  94. [[glossary-filter]] filter ::
  95. // tag::filter-def[]
  96. A filter is a non-scoring <<glossary-query,query>>,
  97. meaning that it does not score documents.
  98. It is only concerned about answering the question - "Does this document match?".
  99. The answer is always a simple, binary yes or no. This kind of query is said to be made
  100. in a {ref}/query-filter-context.html[filter context],
  101. hence it is called a filter. Filters are simple checks for set inclusion or exclusion.
  102. In most cases, the goal of filtering is to reduce the number of documents that have to be examined.
  103. // end::filter-def[]
  104. [[glossary-flush]] flush ::
  105. // tag::flush-def[]
  106. Peform a Lucene commit to write index updates in the transaction log (translog) to disk.
  107. Because a Lucene commit is a relatively expensive operation,
  108. {es} records index and delete operations in the translog and
  109. automatically flushes changes to disk in batches.
  110. To recover from a crash, operations that have been acknowledged but not yet committed
  111. can be replayed from the translog.
  112. Before upgrading, you can explicitly call the {ref}/indices-flush.html[Flush] API
  113. to ensure that all changes are committed to disk.
  114. // end::flush-def[]
  115. [[glossary-follower-index]] follower index ::
  116. // tag::follower-index-def[]
  117. The target index for <<glossary-ccr,{ccr}>>. A follower index exists
  118. in a local cluster and replicates a <<glossary-leader-index,leader index>>.
  119. // end::follower-index-def[]
  120. [[glossary-force-merge]] force merge ::
  121. // tag::force-merge-def[]
  122. // tag::force-merge-def-short[]
  123. Manually trigger a merge to reduce the number of segments in each shard of an index
  124. and free up the space used by deleted documents.
  125. // end::force-merge-def-short[]
  126. You should not force merge indices that are actively being written to.
  127. Merging is normally performed automatically, but you can use force merge after
  128. <<glossary-rollover,rollover>> to reduce the shards in the old index to a single segment.
  129. See the {ref}/indices-forcemerge.html[force merge API].
  130. // end::force-merge-def[]
  131. [[glossary-freeze]] freeze ::
  132. // tag::freeze-def[]
  133. // tag::freeze-def-short[]
  134. Make an index read-only and minimize its memory footprint.
  135. // end::freeze-def-short[]
  136. Frozen indices can be searched without incurring the overhead of of re-opening a closed index,
  137. but searches are throttled and might be slower.
  138. You can freeze indices to reduce the overhead of keeping older indices searchable
  139. before you are ready to archive or delete them.
  140. See the {ref}/freeze-index-api.html[freeze API].
  141. // end::freeze-def[]
  142. [[glossary-frozen-index]] frozen index ::
  143. // tag::frozen-index-def[]
  144. An index reduced to a low overhead state that still enables occasional searches.
  145. Frozen indices use a memory-efficient shard implementation and throttle searches to conserve resources.
  146. Searching a frozen index is lower overhead than re-opening a closed index to enable searching.
  147. // end::frozen-index-def[]
  148. [[glossary-hot-phase]] hot phase ::
  149. // tag::hot-phase-def[]
  150. The first possible phase in the <<glossary-index-lifecycle,index lifecycle>>.
  151. In the hot phase, an index is actively updated and queried.
  152. // end::hot-phase-def[]
  153. [[glossary-id]] id ::
  154. // tag::id-def[]
  155. The ID of a <<glossary-document,document>> identifies a document. The
  156. `index/id` of a document must be unique. If no ID is provided,
  157. then it will be auto-generated. (also see <<glossary-routing,routing>>)
  158. // end::id-def[]
  159. [[glossary-index]] index ::
  160. +
  161. --
  162. // tag::index-def[]
  163. // tag::index-def-short[]
  164. An optimized collection of JSON documents. Each document is a collection of fields,
  165. the key-value pairs that contain your data.
  166. // end::index-def-short[]
  167. An index is a logical namespace that maps to one or more
  168. <<glossary-primary-shard,primary shards>> and can have zero or more
  169. <<glossary-replica-shard,replica shards>>.
  170. // end::index-def[]
  171. --
  172. [[glossary-index-alias]] index alias ::
  173. +
  174. --
  175. // tag::index-alias-def[]
  176. // tag::index-alias-desc[]
  177. An index alias is a logical name used to reference one or more indices.
  178. Most {es} APIs accept an index alias in place of an index name.
  179. // end::index-alias-desc[]
  180. See {ref}/indices-add-alias.html[Add index alias].
  181. // end::index-alias-def[]
  182. --
  183. [[glossary-index-lifecycle]] index lifecycle ::
  184. // tag::index-lifecycle-def[]
  185. The four phases an index can transition through:
  186. <<glossary-hot-phase,hot>>, <<glossary-warm-phase,warm>>,
  187. <<glossary-cold-phase,cold>>, and <<glossary-delete-phase,delete>>.
  188. For more information, see {ref}/ilm-policy-definition.html[Index lifecycle].
  189. // end::index-lifecycle-def[]
  190. [[glossary-index-lifecycle-policy]] index lifecycle policy ::
  191. // tag::index-lifecycle-policy-def[]
  192. Specifies how an index moves between phases in the index lifecycle and
  193. what actions to perform during each phase.
  194. // end::index-lifecycle-policy-def[]
  195. [[glossary-index-pattern]] index pattern ::
  196. // tag::index-pattern-def[]
  197. A string that can contain the `*` wildcard to match multiple index names.
  198. In most cases, the index parameter in an {es} request can be the name of a specific index,
  199. a list of index names, or an index pattern.
  200. For example, if you have the indices `datastream-000001`, `datastream-000002`, and `datastream-000003`,
  201. to search across all three you could use the `datastream-*` index pattern.
  202. // end::index-pattern-def[]
  203. [[glossary-index-template]] index template ::
  204. +
  205. --
  206. // tag::index-template-def[]
  207. // tag::index-template-def-short[]
  208. Defines settings and mappings to apply to new indexes that match a simple naming pattern, such as _logs-*_.
  209. // end::index-template-def-short[]
  210. An index template can also attach a lifecycle policy to the new index.
  211. Index templates are used to automatically configure indices created during <<glossary-rollover,rollover>>.
  212. // end::index-template-def[]
  213. --
  214. [[glossary-leader-index]] leader index ::
  215. // tag::leader-index-def[]
  216. The source index for <<glossary-ccr,{ccr}>>. A leader index exists
  217. on a remote cluster and is replicated to
  218. <<glossary-follower-index,follower indices>>.
  219. // end::leader-index-def[]
  220. [[glossary-local-cluster]] local cluster ::
  221. // tag::local-cluster-def[]
  222. The cluster that pulls data from a <<glossary-remote-cluster,remote cluster>> in {ccs} or {ccr}.
  223. // end::local-cluster-def[]
  224. [[glossary-mapping]] mapping ::
  225. +
  226. --
  227. // tag::mapping-def[]
  228. A mapping is like a _schema definition_ in a relational database. Each
  229. <<glossary-index,index>> has a mapping,
  230. which defines a <<glossary-type,type>>,
  231. plus a number of index-wide settings.
  232. A mapping can either be defined explicitly, or it will be generated
  233. automatically when a document is indexed.
  234. // end::mapping-def[]
  235. --
  236. [[glossary-node]] node ::
  237. // tag::node-def[]
  238. A running instance of {es} that belongs to a
  239. <<glossary-cluster,cluster>>. Multiple nodes can be started on a single
  240. server for testing purposes, but usually you should have one node per
  241. server.
  242. // end::node-def[]
  243. [[glossary-primary-shard]] primary shard ::
  244. +
  245. --
  246. // tag::primary-shard-def[]
  247. Each document is stored in a single primary <<glossary-shard,shard>>. When
  248. you index a document, it is indexed first on the primary shard, then
  249. on all <<glossary-replica-shard,replicas>> of the primary shard.
  250. By default, an <<glossary-index,index>> has one primary shard. You can specify
  251. more primary shards to scale the number of <<glossary-document,documents>>
  252. that your index can handle.
  253. You cannot change the number of primary shards in an index, once the index is
  254. created. However, an index can be split into a new index using the
  255. {ref}/indices-split-index.html[split index API].
  256. See also <<glossary-routing,routing>>.
  257. // end::primary-shard-def[]
  258. --
  259. [[glossary-query]] query ::
  260. +
  261. --
  262. // tag::query-def[]
  263. A request for information from {es}. You can think of a query as a question,
  264. written in a way {es} understands. A search consists of one or more queries
  265. combined.
  266. There are two types of queries: _scoring queries_ and _filters_. For more
  267. information about query types,
  268. see {ref}/query-filter-context.html[Query and filter context].
  269. // end::query-def[]
  270. --
  271. [[glossary-recovery]] recovery ::
  272. +
  273. --
  274. // tag::recovery-def[]
  275. Shard recovery is the process
  276. of syncing a <<glossary-replica-shard,replica shard>>
  277. from a <<glossary-primary-shard,primary shard>>.
  278. Upon completion,
  279. the replica shard is available for search.
  280. // tag::recovery-triggers[]
  281. Recovery automatically occurs
  282. during the following processes:
  283. * Node startup or failure.
  284. This type of recovery is called a *local store recovery*.
  285. * <<glossary-replica-shard,Primary shard replication>>.
  286. * Relocation of a shard to a different node in the same cluster.
  287. * {ref}/snapshots-restore-snapshot.html[Snapshot restoration].
  288. // end::recovery-triggers[]
  289. // end::recovery-def[]
  290. --
  291. [[glossary-reindex]] reindex ::
  292. // tag::reindex-def[]
  293. To cycle through some or all documents in one or more indices, re-writing them into the same
  294. or new index in a local or remote cluster. This is most commonly done to update mappings, or to upgrade {es} between two incompatible index versions.
  295. // end::reindex-def[]
  296. [[glossary-remote-cluster]] remote cluster ::
  297. // tag::remote-cluster-def[]
  298. A separate cluster, often in a different data center or locale, that contains indices that
  299. can be replicated or searched by the <<glossary-local-cluster,local cluster>>.
  300. The connection to a remote cluster is unidirectional.
  301. // end::remote-cluster-def[]
  302. [[glossary-replica-shard]] replica shard ::
  303. +
  304. --
  305. // tag::replica-shard-def[]
  306. Each <<glossary-primary-shard,primary shard>> can have zero or more
  307. replicas. A replica is a copy of the primary shard, and has two
  308. purposes:
  309. 1. Increase failover: a replica shard can be promoted to a primary
  310. shard if the primary fails
  311. 2. Increase performance: get and search requests can be handled by
  312. primary or replica shards.
  313. By default, each primary shard has one replica, but the number of
  314. replicas can be changed dynamically on an existing index. A replica
  315. shard will never be started on the same node as its primary shard.
  316. // end::replica-shard-def[]
  317. --
  318. [[glossary-rollover]] rollover ::
  319. +
  320. --
  321. // tag::rollover-def[]
  322. // tag::rollover-def-short[]
  323. Redirect an index alias to begin writing to a new index when the existing index reaches
  324. a certain size, number of docs, or age.
  325. // end::rollover-def-short[]
  326. The new index is automatically configured according to any matching <<glossary-index-template,index templates>>.
  327. For example, if you're indexing log data, you might use rollover to create daily or weekly indices.
  328. See the {ref}/indices-rollover-index.html[rollover index API].
  329. // end::rollover-def[]
  330. --
  331. [[glossary-rollup]] rollup ::
  332. // tag::rollup-def[]
  333. Summarize high-granularity data into a more compressed format to
  334. maintain access to historical data in a cost-effective way.
  335. // end::rollup-def[]
  336. [[glossary-rollup-index]] rollup index ::
  337. // tag::rollup-index-def[]
  338. A special type of index for storing historical data at reduced granularity.
  339. Documents are summarized and indexed into a rollup index by a <<glossary-rollup-job,rollup job>>.
  340. // end::rollup-index-def[]
  341. [[glossary-rollup-job]] rollup job ::
  342. // tag::rollup-job-def[]
  343. A background task that runs continuously to summarize documents in an index and
  344. index the summaries into a separate rollup index.
  345. The job configuration controls what information is rolled up and how often.
  346. // end::rollup-job-def[]
  347. [[glossary-routing]] routing ::
  348. +
  349. --
  350. // tag::routing-def[]
  351. When you index a document, it is stored on a single
  352. <<glossary-primary-shard,primary shard>>. That shard is chosen by hashing
  353. the `routing` value. By default, the `routing` value is derived from
  354. the ID of the document or, if the document has a specified parent
  355. document, from the ID of the parent document (to ensure that child and
  356. parent documents are stored on the same shard).
  357. This value can be overridden by specifying a `routing` value at index
  358. time, or a {ref}/mapping-routing-field.html[routing field]
  359. in the <<glossary-mapping,mapping>>.
  360. // end::routing-def[]
  361. --
  362. [[glossary-shard]] shard ::
  363. +
  364. --
  365. // tag::shard-def[]
  366. A shard is a single Lucene instance. It is a low-level “worker” unit
  367. which is managed automatically by Elasticsearch. An index is a logical
  368. namespace which points to <<glossary-primary-shard,primary>> and
  369. <<glossary-replica-shard,replica>> shards.
  370. Other than defining the number of primary and replica shards that an
  371. index should have, you never need to refer to shards directly.
  372. Instead, your code should deal only with an index.
  373. Elasticsearch distributes shards amongst all <<glossary-node,nodes>> in the
  374. <<glossary-cluster,cluster>>, and can move shards automatically from one
  375. node to another in the case of node failure, or the addition of new
  376. nodes.
  377. // end::shard-def[]
  378. --
  379. [[glossary-shrink]] shrink ::
  380. +
  381. --
  382. // tag::shrink-def[]
  383. // tag::shrink-def-short[]
  384. Reduce the number of primary shards in an index.
  385. // end::shrink-def-short[]
  386. You can shrink an index to reduce its overhead when the request volume drops.
  387. For example, you might opt to shrink an index once it is no longer the write index.
  388. See the {ref}/indices-shrink-index.html[shrink index API].
  389. // end::shrink-def[]
  390. --
  391. [[glossary-snapshot]] snapshot ::
  392. // tag::snapshot-def[]
  393. A backup taken from a running {es} cluster.
  394. You can take snapshots of individual indices or of the entire cluster.
  395. // end::snapshot-def[]
  396. [[glossary-snapshot-lifecycle-policy]] snapshot lifecycle policy ::
  397. // tag::snapshot-lifecycle-policy-def[]
  398. Specifies how frequently to perform automatic backups of a cluster and
  399. how long to retain the resulting snapshots.
  400. // end::snapshot-lifecycle-policy-def[]
  401. [[glossary-snapshot-repository]] snapshot repository ::
  402. // tag::snapshot-repository-def[]
  403. Specifies where snapshots are to be stored.
  404. Snapshots can be written to a shared filesystem or to a remote repository.
  405. // end::snapshot-repository-def[]
  406. [[glossary-source_field]] source field ::
  407. // tag::source-field-def[]
  408. By default, the JSON document that you index will be stored in the
  409. `_source` field and will be returned by all get and search requests.
  410. This allows you access to the original object directly from search
  411. results, rather than requiring a second step to retrieve the object
  412. from an ID.
  413. // end::source-field-def[]
  414. [[glossary-split]] split ::
  415. // tag::split-def[]
  416. To grow the amount of shards in an index.
  417. See the {ref}/indices-split-index.html[split index API].
  418. // end::split-def[]
  419. [[glossary-term]] term ::
  420. +
  421. --
  422. // tag::term-def[]
  423. A term is an exact value that is indexed in Elasticsearch. The terms
  424. `foo`, `Foo`, `FOO` are NOT equivalent. Terms (i.e. exact values) can
  425. be searched for using _term_ queries.
  426. See also <<glossary-text,text>> and <<glossary-analysis,analysis>>.
  427. // end::term-def[]
  428. --
  429. [[glossary-text]] text ::
  430. +
  431. --
  432. // tag::text-def[]
  433. Text (or full text) is ordinary unstructured text, such as this
  434. paragraph. By default, text will be <<glossary-analysis,analyzed>> into
  435. <<glossary-term,terms>>, which is what is actually stored in the index.
  436. Text <<glossary-field,fields>> need to be analyzed at index time in order to
  437. be searchable as full text, and keywords in full text queries must be
  438. analyzed at search time to produce (and search for) the same terms
  439. that were generated at index time.
  440. See also <<glossary-term,term>> and <<glossary-analysis,analysis>>.
  441. // end::text-def[]
  442. --
  443. [[glossary-type]] type ::
  444. // tag::type-def[]
  445. A type used to represent the _type_ of document, e.g. an `email`, a `user`, or a `tweet`.
  446. Types are deprecated and are in the process of being removed.
  447. See {ref}/removal-of-types.html[Removal of mapping types].
  448. // end::type-def[]
  449. [[glossary-warm-phase]] warm phase ::
  450. // tag::warm-phase-def[]
  451. The second possible phase in the <<glossary-index-lifecycle,index lifecycle>>.
  452. In the warm phase, an index is generally optimized for search and no longer updated.
  453. // end::warm-phase-def[]