How do you filter by number or date with the range query?
Use gt, gte, lt and lte to filter numbers and dates, with format, time zone and date math for relative windows.
43 posts about Elasticsearch: questions with answers, tutorials and articles, newest first.
Use gt, gte, lt and lte to filter numbers and dates, with format, time zone and date math for relative windows.
Learn why a term query returns nothing on a text field and when to choose match, term or a keyword sub-field.
Search a title, description and body with one query string, boost important fields and choose how scores combine.
Use match_phrase to find words that appear next to each other and in order, and tune it with slop and analyzers.
The match query analyzes your text and ranks documents by relevance. Learn the operator, minimum_should_match and fuzziness options with runnable examples.
The Query DSL is the JSON language for searching Elasticsearch. Learn its structure, query and filter context, main query families and the bool query.
Index word prefixes with an edge_ngram filter, query them with a plain analyzer, tune gram sizes and compare with search_as_you_type and the completion suggester.
Set up synonym rules with the synonym_graph filter, apply them at search time, manage large lists with the synonyms API and test them with the analyze API.
Build a custom analyzer from existing components, attach it to a field, test it with the analyze API and learn how to change it safely by reindexing.
Character filters change raw text before tokenizing, and token filters change tokens afterward. See the built-in options, their order and when to use each.
Elasticsearch ships standard, simple, whitespace, stop, keyword, pattern, fingerprint and language analyzers. See what each outputs and when to use it.
The _analyze API shows the tokens an analyzer produces without indexing data. Learn the request forms and how to debug why a query does not match.
Text analysis converts field text into the terms stored in the index. Learn analyzers, tokenizers, filters and why match and term queries differ.
Composable index templates define settings, mappings and aliases for new indexes, and component templates make the parts reusable. See examples and merge order.
You can add fields in place but not change existing types. Learn which updates are allowed and how to reindex into a new index with an alias.
A mapping explosion happens when dynamic mapping creates thousands of fields. Learn the limits, the dynamic setting and the flattened type that keep it in check.
Learn when to use the nested type for arrays of objects, how to map and query it, and the costs and limits that come with it.
Learn how Elasticsearch maps arrays and objects, why arrays of objects are flattened, and when to choose nested or flattened instead.
Map date fields with the format parameter, handle time zones and date math in queries, and deal with malformed dates and date_nanos.
Learn how the fields parameter indexes one value as text, keyword or other types, and how to query, add and size multi-fields.