createddate in the range
statusfield contain the term
10kmof a specified point?
A typical use for a query is to find documents
Best matching the words
full text search
Containing the word
run, but maybe also matching
Containing the words
fox—the closer together they are, the more relevant the document
java—the more tags, the more relevant the document
A 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
The output from most filter clauses—a simple list of the documents that match the filter—is quick to calculate and easy to cache in memory, using only 1 bit per document. These cached filters can be reused efficiently for subsequent requests.
Thanks to the inverted index, a simple query that matches just a few documents may perform as well or better than a cached filter that spans millions of documents. In general, however, a cached filter will outperform a query, and will do so consistently.
The goal of filters is to reduce the number of documents that have to be examined by the query.