Skip to content

Commit 30859f9

Browse files
authored
[DOCS] Rewrite query def (#40746)
1 parent f7cd046 commit 30859f9

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

docs/reference/glossary.asciidoc

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -139,13 +139,12 @@ See also <<glossary-routing,routing>>
139139

140140
[[glossary-query]] query ::
141141

142-
A query is the basic component of a search. A search can be defined by one or more queries
143-
which can be mixed and matched in endless combinations. While <<glossary-filter,filters>> are
144-
queries that only determine if a document matches, those queries that also calculate how well
145-
the document matches are known as "scoring queries". Those queries assign it a score, which is
146-
later used to sort matched documents. Scoring queries take more resources than <<glossary-filter,non scoring queries>>
147-
and their query results are not cacheable. As a general rule, use query clauses for full-text
148-
search or for any condition that requires scoring, and use filters for everything else.
142+
A request for information from {es}. You can think of a query as a question,
143+
written in a way {es} understands. A search consists of one or more queries
144+
combined.
145+
+
146+
There are two types of queries: _scoring queries_ and _filters_. For more
147+
information about query types, see <<query-filter-context>>.
149148

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

0 commit comments

Comments
 (0)