Open-source search database for full-text, vector, and hybrid search with real-time indexing and SQL.
Easy to use open source fast database for search
Manticore Search is an easy-to-use, open-source, and fast database designed for search. It is a great alternative to Elasticsearch.
# Introduction
What distinguishes Manticore from other solutions is:
* It's very fast and therefore more cost-efficient than alternatives. In the current [reproducible benchmarks](https://github.com/db-benchmarks/db-benchmarks), Manticore Search 27.1.5 is:
- [**340x faster** than MySQL 9.7.1](https://db-benchmarks.com/?cache=fast_avg&engines=manticoresearch_27.1.5%2Cmysql_9.7.1&tests=hn_small&memory=110000) and [**6.51x faster** than Typesense 27.1](https://db-benchmarks.com/?cache=fast_avg&engines=manticoresearch_27.1.5%2Ctypesense_27.1&tests=hn_small&memory=110000) for 1.1M Hacker News comments
- **3.85x faster** than tuned Elasticsearch 9.4.3 for [100M+ Hacker News comments](https://db-benchmarks.com/?cache=fast_avg&engines=manticoresearch_rowwise_27.1.5%2Celasticsearch_tuned_9.4.3&tests=hn&memory=110000)
- [**5.03x faster** than tuned Elasticsearch 9.4.3](https://db-benchmarks.com/?cache=fast_avg&engines=elasticsearch_tuned_9.4.3%2Cmanticoresearch_columnar_27.1.5&tests=logs10m&memory=110000&queries=0%2C1%2C3%2C4%2C10%2C11) for selected typical DevOps queries on 10M Nginx logs; [**1.71x faster** than ClickHouse 26.6.1.1193](https://db-benchmarks.com/?cache=fast_avg&engines=manticoresearch_columnar_27.1.5%2Cclickhouse_26.6.1.1193&tests=logs10m&memory=110000) across the dashboard's default 10M-log query selection
- [**2.02x faster** than tuned Elasticsearch 9.4.3](https://db-benchmarks.com/?cache=fast_avg&engines=manticoresearch_columnar_27.1.5%2Celasticsearch_tuned_9.4.3&tests=taxi&memory=110000) and [**3.16x faster** than ClickHouse 26.6.1.1193](https://db-benchmarks.com/?cache=fast_avg&engines=manticoresearch_columnar_27.1.5%2Cclickhouse_26.6.1.1193&tests=taxi&memory=110000) for 1.7B NYC taxi rides
- For the same [10M Nginx-log ingestion](https://db-benchmarks.com/?cache=fast_avg&engines=elasticsearch_tuned_9.4.3%2Cmanticoresearch_columnar_27.1.5&tests=logs10m&memory=110000&queries=0%2C1%2C3%2C4%2C10%2C11), Manticore Search Columnar 27.1.5 completed in **5m 46s** vs **10m 15s** for tuned Elasticsearch 9.4.3, using **1.02 vs 3.80 CPU cores** on average, **3.98 GB vs 36.98 GB RAM** on average, and **0.41 MB read / 8.05 GB written** vs **322.14 MB read / 18.47 GB written**.
Results are workload-specific; use the linked dashboard to select the queries that match your workload.
* ⚡ **Multi-threaded query execution** and efficient query parallelization use all CPU cores for low response times.
* **Full-text search** works seamlessly with both small and large datasets.
* **Hybrid search** combines full-text and vector retrieval in a single query for better relevance.
* **Auto-embeddings with automatic chunking** generate vectors from text and can [split long documents](https://manual.manticoresearch.com/Searching/KNN#Chunking-strategies) into fixed-size, recursive, or sentence-based chunks stored in a `float_vector_array`, making relevant sections searchable without application-side chunking.
* **Conversational search** lets existing vectorized tables answer questions with KNN retrieval, conversation history, and LLM-backed responses through SQL `CALL CHAT` or the HTTP JSON `/search` endpoint.
* ️ **Row-wise storage** provides fast performance for small, medium, and large datasets.
* ️ **Columnar storage**, powered by the [Manticore Columnar Library](https://github.com/manticoresoftware/columnar/), handles datasets too large to fit in RAM.
* **Automatic secondary indexes** use the PGM-index (Piecewise Geometric Model index) for efficient mapping between indexed keys and memory locations.
* **Cost-based query optimization** uses indexed-data statistics to select efficient execution plans.
* **SQL-first and MySQL-compatible**: use SQL as the native syntax with your preferred MySQL client.
* **Official clients** for [PHP](https://github.com/manticoresoftware/manticoresearch-php), [Python](https://github.com/manticoresoftware/manticoresearch-python), [Python asyncio](https://github.com/manticoresoftware/manticoresearch-python-asyncio) [JavaScript](https://github.com/manticoresoftware/manticoresearch-javascript), [Typescript](https://github.com/manticoresoftware/manticoresearch-typescript), [Java](https://github.com/manticoresoftware/manticoresearch-java), [Elixir](https://github.com/manticoresoftware/manticoresearch-elixir), [Go](https://github.com/manticoresoftware/manticoresearch-go), and [Rust](https://github.com/manticoresoftware/manticoresearch-rust) make integration easy.
* **HTTP JSON API and Elasticsearch-compatible writes** support versatile data and schema management.
* **Sharded tables** transparently distribute reads and writes across physical shards on one node or across a replication cluster.
* **Built-in authentication and authorization** secure MySQL, HTTP/HTTPS, distributed remote agents, and replication-related operations with users, bearer tokens, and fine-grained permissions.
* **C++ performance and a small footprint**: Manticore Search starts quickly and uses around 40MB RSS for an empty instance.
* ⚡ **Real-time inserts** make newly added or updated documents immediately accessible.
* **Interactive courses** at [play.manticoresearch.com](https://play.manticoresearch.com/) make learning easier.
* **Virtually synchronous multi-master replication** uses Galera and includes load balancing.
* **Data synchronization** supports sources such as MySQL, PostgreSQL, ODBC, XML, and CSV.
* ️ **Safe writes**: while not fully ACID-compliant, Manticore supports isolated transactions and binary logging.
* **Backup and recovery** include `manticore-backup`, SQL `BACKUP`, and S3-compatible backup/restore support.
[Craigslist](https://www.craigslist.org/), [Socialgist](https://socialgist.com/), [PubChem](https://pubchem.ncbi.nlm.nih.gov/), [Rozetka](https://rozetka.com.ua/) and many others use Manticore for efficient searching and stream filtering.
# More features
* Full-text search and relevance:
- Over 20 [full-text operators](https://play.manticoresearch.com/fulltextintro/) and over 20 ranking factors
- Custom ranking
* Other search capabilities:
- [Rich filtering functionality](https://manual.manticoresearch.com/Searching/Full_text_matching/Operators)
- [Fuzzy search](https://manual.manticoresearch.com/Searching/Spell_correction#Fuzzy-Search)
- [Faceted search](https://play.manticoresearch.com/faceting/)
- [Geo-spatial search](https://play.manticoresearch.com/geosearch/)
- [Hybrid search](https://manual.manticoresearch.com/Searching/Hybrid_search)
- [Vector search](https://manual.manticoresearch.com/Searching/KNN)
- [Auto-embeddings with automatic chunking](https://manual.manticoresearch.com/Searching/KNN#Chunking-strategies)
- [Conversational search](https://manual.manticoresearch.com/Searching/Conversational_search)
- [Joining tables](https://manual.manticoresearch.com/Searching/Joining)
- [Spelling correction](https://play.manticoresearch.com/didyoumean/)
- [Autocomplete](https://manual.manticoresearch.com/Searching/Autocomplete#Autocomplete)
- A wide range of functions for filtering and data manipulation
* Natural language processing (NLP):
- [Stemming](https://manual.manticoresearch.com/Creating_a_table/NLP_and_tokenization/Morphology)
- [Lemmatization](https://manual.manticoresearch.com/Creating_a_table/NLP_and_tokenization/Morphology)
- [Stopwords](https://manual.manticoresearch.com/Creating_a_table/NLP_and_tokenization/Ignoring_stop-words#stopwords)
- [Synonyms](https://manual.manticoresearch.com/Creating_a_table/NLP_and_tokenization/Exceptions)
- [Wordforms](https://manual.manticoresearch.com/Creating_a_table/NLP_and_tokenization/Wordforms#wordforms)
- [Advanced tokenization at character and word level](https://manual.manticoresearch.com/Creating_a_table/NLP_and_tokenization/Low-level_tokenization#charset_table)
- [Proper Chinese segmentation](https://play.manticoresearch.com/icu-chinese/)
- [Text highlighting](https://play.manticoresearch.com/highlighting/)
* Stream filtering:
- [using a "percolate" table](https://play.manticoresearch.com/pq/)
- or the [Kafka integration](https://manual.manticoresearch.com/Integration/Kafka)
* High-availability:
- [Sharded tables](https://manual.manticoresearch.com/Creating_a_table/Creating_a_sharded_table/Creating_a_sharded_table)
- Data can be distributed across servers and data-centers
- [Synchronous replication](https://play.manticoresearch.com/replication/)
- Built-in load balancing
* Security:
- [Authentication and authorization](https://manual.manticoresearch.com/Security/Authentication_and_authorization)
- [https support](https://play.manticoresearch.com/https/)
- [read-only mode](https://manual.manticoresearch.com/Security/Read_only)
* Data safety:
- [manticore-backup tool and SQL command BACKUP](https://manual.manticoresearch.com/Securing_and_compacting_a_table/Backup_and_restore) to back up and restore your data
- [S3-compatible backup and restore](https://manual.manticoresearch.com/Securing_and_compacting_a_table/Backup_and_restore)
* Data storages:
- row-wise - requires more RAM, provides faster performance
- columnar - requires less RAM, still provides decent performance, but lower than the row-wise storage for some kinds of queries
- docstore - doesn't require RAM at all, but allows only fetching original value, not sorting/grouping/filtering
* Performance optimizations:
- [Secondary indexes](https://manual.manticoresearch.com/Server_settings/Searchd#secondary_indexes)
- Cost-based optimizer determines the most efficient execution plan of a search query
* Data types:
- full-text field - inverted index
- [UUID document IDs](https://manual.manticoresearch.com/Creating_a_table/Data_types#UUID-document-IDs) for real-time tables
- int, bigint and float numeric fields in row-wise and columnar fashion
- multi-value attributes (array)
- string and JSON
- on-disk "[stored](https://play.manticoresearch.com/docstore/)" for key-value purpose
* Integrations:
- [Sync from MySQL and PostgreSQL](https://manual.manticoresearch.com/Creating_a_table/Local_tables/Plain_table#Plain-table)
- [Sync from XML](https://manual.manticoresearch.com/Adding_data_from_external_storages/Fetching_from_XML_streams#XML-file-format)
- [Sync from CSV](https://manual.manticor