What is the difference between text and keyword in Elasticsearch?
Learn how text fields are analyzed for full-text search while keyword fields store exact values for filtering, sorting and aggregations.
43 posts about Elasticsearch: questions with answers, tutorials and articles, newest first.
Learn how text fields are analyzed for full-text search while keyword fields store exact values for filtering, sorting and aggregations.
A tour of the field data types Elasticsearch supports, with a mapping example showing when to use text, keyword, numeric, date and other types.
Dynamic mapping guesses field types and explicit mapping declares them. Learn the dynamic modes, templates and which to use in production.
A mapping is the schema of an Elasticsearch index. Learn field types, text versus keyword, multi-fields and how to add fields to a live index.
An index alias is a stable name for one or more indices. Learn to swap indices atomically, filter views and manage write indices.
The _reindex API copies documents from one index to another so you can change mappings or analysers. Learn the options for large safe jobs.
Elasticsearch prevents lost updates with if_seq_no and if_primary_term instead of locks. See how conflicts work and how to retry safely.
The Elasticsearch bulk API sends many index, update and delete operations in one request. Learn the NDJSON format, the response and batch sizing.
Remove a single document, delete by query, drop an index and learn the safeguards that prevent accidental data loss.
Make partial updates with the update API, replace a document, use scripts and upserts, update by query and avoid lost updates.
Fetch one document by ID, read _source only, filter fields and fetch many IDs at once with _mget, and see why get is faster than search.
Store a document with POST or PUT, choose your own ID, understand the refresh delay and load many documents with the bulk API.
Learn to create an index with PUT, choose shards and replicas, define mappings up front and check the result, using Elasticsearch 8 and 9.
Use the cluster health API to read the status, spot unassigned shards, check a single index and find out why a shard is not allocated.
The Kibana Dev Tools console lets you send Elasticsearch REST requests from the browser. Learn the syntax, shortcuts and a full create, search and delete workflow.
Set up a local Elasticsearch and Kibana environment with one Compose file, then verify it with curl and the browser. Includes fixes for common startup errors.
The ELK stack combines Elasticsearch, Logstash and Kibana, now extended by Beats and Elastic Agent. See what each tool does and how data flows between them.
Documents are JSON records, indices group them, and shards spread them across nodes. Learn how primaries and replicas work and how to size shards.
Compare Elasticsearch with relational databases such as PostgreSQL and MySQL: data model, search, transactions, scaling and when to combine them.
Elasticsearch is a distributed search and analytics engine built on Lucene. Learn how it indexes JSON documents and answers queries quickly.