| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533 | [glossary][[glossary]]= Glossary of terms[glossary][[glossary-analysis]] analysis ::+--// tag::analysis-def[]Analysis is the process of converting <<glossary-text,full text>> to<<glossary-term,terms>>. Depending on which analyzer is used, these phrases:`FOO BAR`, `Foo-Bar`, `foo,bar` will probably all result in theterms `foo` and `bar`. These terms are what is actually stored inthe index.A full text query (not a <<glossary-term,term>> query) for `FoO:bAR` willalso be analyzed to the terms `foo`,`bar` and will thus match theterms stored in the index.It is this process of analysis (both at index time and at search time)that allows Elasticsearch to perform full text queries.Also see <<glossary-text,text>> and <<glossary-term,term>>.// end::analysis-def[]--[[glossary-api-key]] API key ::// tag::api-key-def[]A unique identifier that you can use for authentication when submitting {es} requests. When TLS is enabled, all requests must be authenticated using either basic authentication (user name and password) or an API key.// end::api-key-def[][[glossary-auto-follow-pattern]] auto-follow pattern ::// tag::auto-follow-pattern-def[]An <<glossary-index-pattern,index pattern>> that automatically configures new indices as <<glossary-follower-index,follower indices>> for <<glossary-ccr,{ccr}>>.For more information, see {ref}/ccr-auto-follow.html#_managing_auto_follow_patterns[Managing auto follow patterns].// end::auto-follow-pattern-def[][[glossary-cluster]] cluster ::// tag::cluster-def[]One or more <<glossary-node,nodes>> that share thesame cluster name. Each cluster has a single master node, which ischosen automatically by the cluster and can be replaced if it fails.// end::cluster-def[][[glossary-cold-phase]] cold phase ::// tag::cold-phase-def[]The third possible phase in the <<glossary-index-lifecycle,index lifecycle>>. In the cold phase, an index is no longer updated and seldom queried. The information still needs to be searchable, but it’s okay if those queries are slower.// end::cold-phase-def[][[glossary-ccr]] {ccr} (CCR)::// tag::ccr-def[]A feature that enables you to replicate indices in remote clusters to yourlocal cluster. For more information, see {ref}/xpack-ccr.html[{ccr-cap}].  // end::ccr-def[]  [[glossary-ccs]] {ccs} (CCS)::// tag::ccs-def[]A feature that enables any node to act as a federated client acrossmultiple clusters.See {ref}/modules-cross-cluster-search.html[Search across clusters].// end::ccs-def[][[glossary-delete-phase]] delete phase ::// tag::delete-phase-def[]The last possible phase in the <<glossary-index-lifecycle,index lifecycle>>. In the delete phase, an index is no longer needed and can safely be deleted.// end::delete-phase-def[][[glossary-document]] document ::+--// tag::document-def[]A document is a JSON document which is stored in Elasticsearch. It islike a row in a table in a relational database. Each document isstored in an <<glossary-index,index>> and has a <<glossary-type,type>>and an <<glossary-id,id>>.A document is a JSON object (also known in other languages as a hash /hashmap / associative array) which contains zero or more<<glossary-field,fields>>, or key-value pairs.The original JSON document that is indexed will be stored in the<<glossary-source_field,`_source` field>>, which is returned by default whengetting or searching for a document.// end::document-def[]--[[glossary-field]] field ::+--// tag::field-def[]A <<glossary-document,document>> contains a list of fields, or key-valuepairs. The value can be a simple (scalar) value (eg a string, integer,date), or a nested structure like an array or an object. A field issimilar to a column in a table in a relational database.The <<glossary-mapping,mapping>> for each field has a field _type_ (not tobe confused with document <<glossary-type,type>>) which indicates the typeof data that can be stored in that field, eg `integer`, `string`,`object`. The mapping also allows you to define (amongst other things)how the value for a field should be analyzed.// end::field-def[]--[[glossary-filter]] filter ::// tag::filter-def[]A filter is a non-scoring <<glossary-query,query>>,meaning that it does not score documents.It is only concerned about answering the question - "Does this document match?". The answer is always a simple, binary yes or no. This kind of query is said to be made in a {ref}/query-filter-context.html[filter context], hence it is called a filter. Filters are simple checks for set inclusion or exclusion. In most cases, the goal of filtering is to reduce the number of documents that have to be examined.// end::filter-def[][[glossary-flush]] flush ::// tag::flush-def[]Peform a Lucene commit to write index updates in the transaction log (translog) to disk. Because a Lucene commit is a relatively expensive operation, {es} records index and delete operations in the translog and automatically flushes changes to disk in batches.To recover from a crash, operations that have been acknowledged but not yet committed can be replayed from the translog.Before upgrading, you can explicitly call the {ref}/indices-flush.html[Flush] APIto ensure that all changes are committed to disk.// end::flush-def[][[glossary-follower-index]] follower index ::  // tag::follower-index-def[]The target index for <<glossary-ccr,{ccr}>>. A follower index existsin a local cluster and replicates a <<glossary-leader-index,leader index>>.// end::follower-index-def[][[glossary-force-merge]] force merge ::  // tag::force-merge-def[]// tag::force-merge-def-short[]Manually trigger a merge to reduce the number of segments in each shard of an index and free up the space used by deleted documents.// end::force-merge-def-short[]You should not force merge indices that are actively being written to.Merging is normally performed automatically, but you can use force merge after <<glossary-rollover,rollover>> to reduce the shards in the old index to a single segment. See the {ref}/indices-forcemerge.html[force merge API].// end::force-merge-def[][[glossary-freeze]] freeze ::  // tag::freeze-def[]// tag::freeze-def-short[]Make an index read-only and minimize its memory footprint. // end::freeze-def-short[]Frozen indices can be searched without incurring the overhead of of re-opening a closed index,but searches are throttled and might be slower. You can freeze indices to reduce the overhead of keeping older indices searchable before you are ready to archive or delete them.See the {ref}/freeze-index-api.html[freeze API].// end::freeze-def[][[glossary-frozen-index]] frozen index ::  // tag::frozen-index-def[]An index reduced to a low overhead state that still enables occasional searches.Frozen indices use a memory-efficient shard implementation and throttle searches to conserve resources.Searching a frozen index is lower overhead than re-opening a closed index to enable searching.// end::frozen-index-def[][[glossary-hot-phase]] hot phase ::// tag::hot-phase-def[]The first possible phase in the <<glossary-index-lifecycle,index lifecycle>>. In the hot phase, an index is actively updated and queried. // end::hot-phase-def[][[glossary-id]] id ::// tag::id-def[]The ID of a <<glossary-document,document>> identifies a document. The`index/id` of a document must be unique. If no ID is provided,then it will be auto-generated. (also see <<glossary-routing,routing>>)// end::id-def[][[glossary-index]] index ::+--// tag::index-def[]// tag::index-def-short[]An optimized collection of JSON documents. Each document is a collection of fields, the key-value pairs that contain your data. // end::index-def-short[]An index is a logical namespace that maps to one or more<<glossary-primary-shard,primary shards>> and can have zero or more<<glossary-replica-shard,replica shards>>.// end::index-def[]--[[glossary-index-alias]] index alias ::+--// tag::index-alias-def[]// tag::index-alias-desc[]An index alias is a logical name used to reference one or more indices.Most {es} APIs accept an index alias in place of an index name.// end::index-alias-desc[]See {ref}/indices-add-alias.html[Add index alias].// end::index-alias-def[]--[[glossary-index-lifecycle]] index lifecycle ::// tag::index-lifecycle-def[]The four phases an index can transition through: <<glossary-hot-phase,hot>>, <<glossary-warm-phase,warm>>,<<glossary-cold-phase,cold>>, and <<glossary-delete-phase,delete>>.For more information, see {ref}/ilm-policy-definition.html[Index lifecycle].// end::index-lifecycle-def[][[glossary-index-lifecycle-policy]] index lifecycle policy ::// tag::index-lifecycle-policy-def[]Specifies how an index moves between phases in the index lifecycle and what actions to perform during each phase. // end::index-lifecycle-policy-def[][[glossary-index-pattern]] index pattern ::// tag::index-pattern-def[]A string that can contain the `*` wildcard to match multiple index names.In most cases, the index parameter in an {es} request can be the name of a specific index, a list of index names, or an index pattern.For example, if you have the indices `datastream-000001`, `datastream-000002`, and `datastream-000003`,to search across all three you could use the `datastream-*` index pattern.  // end::index-pattern-def[][[glossary-index-template]] index template ::+--// tag::index-template-def[]// tag::index-template-def-short[]Defines settings and mappings to apply to new indexes that match a simple naming pattern, such as _logs-*_. // end::index-template-def-short[]An index template can also attach a lifecycle policy to the new index.Index templates are used to automatically configure indices created during <<glossary-rollover,rollover>>. // end::index-template-def[]--[[glossary-leader-index]] leader index ::  // tag::leader-index-def[]The source index for <<glossary-ccr,{ccr}>>. A leader index existson a remote cluster and is replicated to <<glossary-follower-index,follower indices>>.// end::leader-index-def[][[glossary-local-cluster]] local cluster ::// tag::local-cluster-def[]The cluster that pulls data from a <<glossary-remote-cluster,remote cluster>> in {ccs} or {ccr}.// end::local-cluster-def[][[glossary-mapping]] mapping ::+--// tag::mapping-def[]A mapping is like a _schema definition_ in a relational database. Each<<glossary-index,index>> has a mapping,which defines a <<glossary-type,type>>,plus a number of index-wide settings.A mapping can either be defined explicitly, or it will be generatedautomatically when a document is indexed.// end::mapping-def[]--[[glossary-node]] node ::// tag::node-def[]A running instance of {es} that belongs to a<<glossary-cluster,cluster>>. Multiple nodes can be started on a singleserver for testing purposes, but usually you should have one node perserver.// end::node-def[][[glossary-primary-shard]] primary shard ::+--// tag::primary-shard-def[]Each document is stored in a single primary <<glossary-shard,shard>>. Whenyou index a document, it is indexed first on the primary shard, thenon all <<glossary-replica-shard,replicas>> of the primary shard.By default, an <<glossary-index,index>> has one primary shard. You can specifymore primary shards to scale the number of <<glossary-document,documents>>that your index can handle.You cannot change the number of primary shards in an index, once the index iscreated. However, an index can be split into a new index using the{ref}/indices-split-index.html[split index API].See also <<glossary-routing,routing>>.// end::primary-shard-def[]--[[glossary-query]] query ::+--// tag::query-def[]A request for information from {es}. You can think of a query as a question,written in a way {es} understands. A search consists of one or more queriescombined.There are two types of queries: _scoring queries_ and _filters_. For moreinformation about query types,see {ref}/query-filter-context.html[Query and filter context].// end::query-def[]--[[glossary-recovery]] recovery ::+--// tag::recovery-def[]Shard recovery is the processof syncing a <<glossary-replica-shard,replica shard>>from a <<glossary-primary-shard,primary shard>>.Upon completion,the replica shard is available for search.// tag::recovery-triggers[]Recovery automatically occursduring the following processes:* Node startup or failure.  This type of recovery is called a *local store recovery*.* <<glossary-replica-shard,Primary shard replication>>.* Relocation of a shard to a different node in the same cluster.* {ref}/snapshots-restore-snapshot.html[Snapshot restoration].// end::recovery-triggers[]// end::recovery-def[]--[[glossary-reindex]] reindex ::// tag::reindex-def[]To cycle through some or all documents in one or more indices, re-writing them into the same 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.// end::reindex-def[][[glossary-remote-cluster]] remote cluster ::// tag::remote-cluster-def[]A separate cluster, often in a different data center or locale, that contains indices that can be replicated or searched by the <<glossary-local-cluster,local cluster>>. The connection to a remote cluster is unidirectional.// end::remote-cluster-def[][[glossary-replica-shard]] replica shard ::+--// tag::replica-shard-def[]Each <<glossary-primary-shard,primary shard>> can have zero or morereplicas. A replica is a copy of the primary shard, and has twopurposes:1.  Increase failover: a replica shard can be promoted to a primaryshard if the primary fails2.  Increase performance: get and search requests can be handled byprimary or replica shards.By default, each primary shard has one replica, but the number ofreplicas can be changed dynamically on an existing index. A replicashard will never be started on the same node as its primary shard.// end::replica-shard-def[]--[[glossary-rollover]] rollover ::+--// tag::rollover-def[]// tag::rollover-def-short[]Redirect an index alias to begin writing to a new index when the existing index reaches a certain size, number of docs, or age. // end::rollover-def-short[]The new index is automatically configured according to any matching <<glossary-index-template,index templates>>. For example, if you're indexing log data, you might use rollover to create daily or weekly indices. See the {ref}/indices-rollover-index.html[rollover index API].// end::rollover-def[]--[[glossary-rollup]] rollup ::// tag::rollup-def[]Summarize high-granularity data into a more compressed format to maintain access to historical data in a cost-effective way.// end::rollup-def[][[glossary-rollup-index]] rollup index ::// tag::rollup-index-def[]A special type of index for storing historical data at reduced granularity. Documents are summarized and indexed into a rollup index by a <<glossary-rollup-job,rollup job>>.// end::rollup-index-def[][[glossary-rollup-job]] rollup job ::// tag::rollup-job-def[]A background task that runs continuously to summarize documents in an index and index the summaries into a separate rollup index. The job configuration controls what information is rolled up and how often. // end::rollup-job-def[][[glossary-routing]] routing ::+--// tag::routing-def[]When you index a document, it is stored on a single<<glossary-primary-shard,primary shard>>. That shard is chosen by hashingthe `routing` value. By default, the `routing` value is derived fromthe ID of the document or, if the document has a specified parentdocument, from the ID of the parent document (to ensure that child andparent documents are stored on the same shard).This value can be overridden by specifying a `routing` value at indextime, or a {ref}/mapping-routing-field.html[routing field]in the <<glossary-mapping,mapping>>.// end::routing-def[]--[[glossary-shard]] shard ::+--// tag::shard-def[]A shard is a single Lucene instance. It is a low-level “worker” unitwhich is managed automatically by Elasticsearch. An index is a logicalnamespace which points to <<glossary-primary-shard,primary>> and<<glossary-replica-shard,replica>> shards.Other than defining the number of primary and replica shards that anindex should have, you never need to refer to shards directly.Instead, your code should deal only with an index.Elasticsearch distributes shards amongst all <<glossary-node,nodes>> in the<<glossary-cluster,cluster>>, and can move shards automatically from onenode to another in the case of node failure, or the addition of newnodes.// end::shard-def[]--[[glossary-shrink]] shrink ::+--// tag::shrink-def[]// tag::shrink-def-short[]Reduce the number of primary shards in an index.// end::shrink-def-short[]You can shrink an index to reduce its overhead when the request volume drops.For example, you might opt to shrink an index once it is no longer the write index. See the {ref}/indices-shrink-index.html[shrink index API].// end::shrink-def[]--[[glossary-snapshot]] snapshot ::// tag::snapshot-def[]A backup taken from a running {es} cluster. You can take snapshots of individual indices or of the entire cluster. // end::snapshot-def[][[glossary-snapshot-lifecycle-policy]] snapshot lifecycle policy ::// tag::snapshot-lifecycle-policy-def[]Specifies how frequently to perform automatic backups of a cluster and how long to retain the resulting snapshots. // end::snapshot-lifecycle-policy-def[][[glossary-snapshot-repository]] snapshot repository ::// tag::snapshot-repository-def[]Specifies where snapshots are to be stored. Snapshots can be written to a shared filesystem or to a remote repository.// end::snapshot-repository-def[][[glossary-source_field]] source field ::// tag::source-field-def[]By default, the JSON document that you index will be stored in the`_source` field and will be returned by all get and search requests.This allows you access to the original object directly from searchresults, rather than requiring a second step to retrieve the objectfrom an ID.// end::source-field-def[][[glossary-split]] split ::// tag::split-def[]To grow the amount of shards in an index.See the {ref}/indices-split-index.html[split index API].// end::split-def[][[glossary-term]] term ::+--// tag::term-def[]A term is an exact value that is indexed in Elasticsearch. The terms`foo`, `Foo`, `FOO` are NOT equivalent. Terms (i.e. exact values) canbe searched for using _term_ queries.See also <<glossary-text,text>> and <<glossary-analysis,analysis>>.// end::term-def[]--[[glossary-text]] text ::+--// tag::text-def[]Text (or full text) is ordinary unstructured text, such as thisparagraph. By default, text will be <<glossary-analysis,analyzed>> into<<glossary-term,terms>>, which is what is actually stored in the index.Text <<glossary-field,fields>> need to be analyzed at index time in order tobe searchable as full text, and keywords in full text queries must beanalyzed at search time to produce (and search for) the same termsthat were generated at index time.See also <<glossary-term,term>> and <<glossary-analysis,analysis>>.// end::text-def[]--[[glossary-type]] type ::// tag::type-def[]A type used to represent the _type_ of document, e.g. an `email`, a `user`, or a `tweet`.Types are deprecated and are in the process of being removed.See {ref}/removal-of-types.html[Removal of mapping types].// end::type-def[][[glossary-warm-phase]] warm phase ::// tag::warm-phase-def[]The second possible phase in the <<glossary-index-lifecycle,index lifecycle>>. In the warm phase, an index is generally optimized for search and no longer updated.// end::warm-phase-def[]
 |