-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Glossary update, Closes Issue #16891 #29127
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
Changes from 2 commits
9d28ba1
d28152e
a14b6c7
6d091ff
f57cb47
69a9fc3
2c40605
b5024e8
5bc957a
3813c91
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -61,6 +61,16 @@ | |
| `object`. The mapping also allows you to define (amongst other things) | ||
| how the value for a field should be analyzed. | ||
|
|
||
| [[glossary-filter]] filter :: | ||
|
|
||
| A filter is a query. It is a kind of query which does not give a score, so it is | ||
| known as a "non-scoring" query.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 "filtering" context (e.g. Is the created date in the range 2013 - 2014?), hence it is called a filter. Filters are | ||
|
||
| simple checks for set inclusion or exclusion. The goal of filtering is to reduce the | ||
|
||
| number of documents that have to be examined, instead of what happens in the case of | ||
| <<glossary-query,scoring queries>>. | ||
|
||
|
|
||
| [[glossary-index]] index :: | ||
|
|
||
| An index is like a _table_ in a relational database. It has a | ||
|
|
@@ -105,6 +115,20 @@ | |
| + | ||
| 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. The term Query refers to all queries | ||
|
||
| which not only determine if a document matches, but also calculate how well the document matches. | ||
|
||
| This calculation is refered to as scoring, hence these queries are also known as "scoring queries". | ||
| A scoring query calculates how relevant each document is to the query, and assigns | ||
|
||
| it a relevance score, which is later used to sort matching documents by relevance. | ||
| This concept of relevance is well suited to full-text search, where there is seldom a | ||
|
||
| completely “correct” answer. These queries are takes 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 should | ||
| affect the relevance score, and use filters for everything else. | ||
|
||
|
|
||
| [[glossary-replica-shard]] replica shard :: | ||
|
|
||
| Each <<glossary-primary-shard,primary shard>> can have zero or more | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe you can join the first two sentences to make it more fluent, e.g. "A filter is a <<glossary-query,scoring queries>> that ..." and then join the second sentence.
Maybe use something like "produces a score" or "scores documents" instead of "give a score"?