Apache Solr
Enterprise search platform featuring full-text search, hit highlighting, faceted search, real-time indexing, dynamic clustering, and rich document (e.g., Word, PDF) handling.
Alternatives
Tech stack
No tech stack added yet. Sign in to suggest some
Overview
Apache Solr is an open-source search platform from the Apache Software Foundation (ASF). Built on the full-text, vector, and geospatial search capabilities of Apache Lucene, it is officially described as a "blazing-fast, open-source, multi-modal" search platform. Solr is stable, scalable horizontally, and fault tolerant. Many of the world's high-traffic websites and applications use it to provide search and navigation, and some examples are listed on the Powered By page of the official website.
Key Features
- Full-text search: Based on Lucene's inverted index, with common search features such as spell checking.
- Vector search: Supports vector similarity search, which can be used in modern retrieval scenarios such as semantic search.
- Geospatial search: Supports queries by location and geographic area.
- Faceting and navigation: Counts and filters search results by dimension, which suits the filter navigation of e-commerce and catalog sites.
- Statistics and aggregation: Performs statistical analysis and aggregate calculations on search results.
- Rich document handling: Can work with projects such as Apache Tika to index content in a wide range of document formats.
- Plugins and extensions: A flexible plugin system lets you customize functionality as needed.
- SolrCloud distributed mode: Provides distributed indexing, replication, load-balanced queries, automatic failover and recovery, and centralized configuration management (using Apache ZooKeeper).
- Admin interface: Comes with a built-in web admin console for viewing and maintaining clusters and indexes.
Target Users and Use Cases
Solr suits development teams and companies that need to run their own search service, from large enterprise applications to personal weekend projects. Typical uses include site search, e-commerce product search and filtering, enterprise document search, log and data analysis, and location-based search services.
Core Strengths
- Mature and reliable: Proven in production over a long period on many high-traffic websites.
- Scalable and fault tolerant: SolrCloud supports clustered deployment, data replication, and automatic recovery.
- Multi-modal search: Full-text, vector, and geospatial search are integrated in a single platform.
- Open ecosystem: Maintained jointly by the Apache community, and works with projects such as Lucene, ZooKeeper, Tika, Spark, Nutch, and OpenNLP.
- Free and open source: Licensed under the Apache License 2.0.
Installation and Deployment
- Binary package: Get the release package from the download page on the official website, then get started with the official Quick Start tutorial.
- Docker: An official
solrimage is available on Docker Hub for containerized deployment. - Kubernetes: The official Solr Operator automates the deployment and management of Solr clusters on Kubernetes.
Technical Requirements
Solr is written in Java and requires a Java runtime (see the official documentation for your version for the specific version requirements). Running in distributed SolrCloud mode requires Apache ZooKeeper.
Worth Noting
- The latest major version is currently Solr 10.0.0, while the 9.x branch continues to receive maintenance releases.
- The official website publishes security advisories. For production deployments, keep an eye on the security page and upgrade promptly.
- The project provides extensive learning resources, including reference documentation, tutorials, books, talks, and videos.
Discover more
OpenSearch
Distributed and RESTful search engine.
Fess
Powerful and easily deployable Enterprise Search Server.
Yacy
Peer based, decentralized search engine server.
ZincSearch
Search engine that requires minimal resources (alternative to Elasticsearch).
Aleph
Tool for indexing large amounts of both documents (PDF, Word, HTML) and structured (CSV, XLS, SQL) data for easy browsing and search. It is built with investigative reporting as a primary use case.
Amgix
Amgix (a-MAG-ix) is a modular distributed hybrid search system