Skip to content

Commit

Permalink
[DOCS] Rewrite query def (elastic#40746)
Browse files Browse the repository at this point in the history
  • Loading branch information
jrodewig authored Apr 4, 2019
1 parent f7cd046 commit 30859f9
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions docs/reference/glossary.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -139,13 +139,12 @@ See also <<glossary-routing,routing>>

[[glossary-query]] query ::

A query is the basic component of a search. A search can be defined by one or more queries
which can be mixed and matched in endless combinations. While <<glossary-filter,filters>> are
queries that only determine if a document matches, those queries that also calculate how well
the document matches are known as "scoring queries". Those queries assign it a score, which is
later used to sort matched documents. Scoring queries take more resources than <<glossary-filter,non scoring queries>>
and their query results are not cacheable. As a general rule, use query clauses for full-text
search or for any condition that requires scoring, and use filters for everything else.
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 queries
combined.
+
There are two types of queries: _scoring queries_ and _filters_. For more
information about query types, see <<query-filter-context>>.

[[glossary-recovery]] recovery ::
The process of syncing a shard copy from a source shard. Upon completion, the recovery process makes the shard copy available for queries.
Expand Down

0 comments on commit 30859f9

Please sign in to comment.