Skip to content

Commit 7cc9b96

Browse files
authored
[DOCS] Rewrite query def (#266)
1 parent f2a6ef1 commit 7cc9b96

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

docs/en/glossary/glossary.asciidoc

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -582,15 +582,12 @@ endif::cloud-terms[]
582582
ifdef::elasticsearch-terms[]
583583
[[glossary-query]] query ::
584584

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

595592
//Source: Elasticsearch
596593
endif::elasticsearch-terms[]

0 commit comments

Comments
 (0)