glossary.asciidoc 20 KB

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