Skip to content

[DOCS] Rewrite query def #266

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 4, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 6 additions & 9 deletions docs/en/glossary/glossary.asciidoc
Original file line number Diff line number Diff line change
Expand Up @@ -582,15 +582,12 @@ endif::cloud-terms[]
ifdef::elasticsearch-terms[]
[[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 {ref}/query-filter-context.html[Query and filter context].

//Source: Elasticsearch
endif::elasticsearch-terms[]
Expand Down