Compass

discontinued

by Shay Banon · since 2004 · also known as Compass Search Engine Framework, Compass Project

Java search framework on Lucene with object-to-index mapping; Shay Banon's precursor to Elasticsearch.

search enginedocumentembedded libraryopen source (permissive)legacy

discontinued. Superseded by Elasticsearch (2010); the author put Compass 2.x into maintenance and the project site is offline. Last line: 2.2.0.

Overview

Compass was an open-source Java framework that Shay Banon started in 2004 to make Apache Lucene usable as an application data store. Its core idea was OSEM, object/search engine mapping: annotate domain classes and Compass indexed them, kept the index in step with Hibernate, JPA and other ORM writes, and wrapped Lucene in transactional index operations, a query builder and XML or JSON mappings. It was widely used from Spring and Grails applications in the late 2000s. While designing Compass 3.0, Banon concluded that a scalable, distributed engine speaking JSON over HTTP needed a rewrite, released Elasticsearch in 2010, and announced that Compass 2.x was in maintenance mode and users should plan to migrate. The final line was 2.2.0, and the project site is offline.

Strengths & trade-offs

Strengths

  • +Annotation-driven mapping from Java objects to a Lucene index
  • +Kept search indexes in sync with Hibernate/JPA writes automatically
  • +Transactional semantics over Lucene index updates

Trade-offs

  • −Discontinued since 2010 and tied to very old Lucene versions
  • −Single-JVM design with no distribution
  • −Its author recommended migrating to Elasticsearch

Great for

  • +Maintaining legacy Spring or Grails apps that still embed it
  • +Historical context for Elasticsearch's design

Think twice for

  • −New search projects
  • −Distributed or large-scale search

Capabilities

Native or official first-party support · 3 of 25 tracked

✓Transactions
✓Full-text search
✓Durable persistence
–Joins
–Secondary indexes
–Vector search
–Geospatial
–JSON
–Change data capture
–Triggers
–Stored procedures
–Materialized views
–TTL / expiry
–Pub/Sub
–Columnar storage
–In-memory
–Compression
–Encryption at rest
–Role-based access
–Time travel
–Branching
–Online schema changes
–Streaming ingest
–Offline sync
–Runs in WebAssembly

Scale & consistency

Comfortable data size
Small · ≤ 100 GB
Horizontal scaling
None
Multi-region
No
Transactions
Limited ACID
Consistency
Strong
Schema
Flexible
Architecture
Embedded
Query languages
Lucene query syntax, Compass query builder

Deployment

Self-hosted Vendor-managed cloud Serverless Embedded Edge Kubernetes operator

Ecosystem

apis & protocolsJava API, OSEM annotations
client languagesJava

Alternatives to Compass

Compare all→
ElasticsearchSearch Engine75.1

Lucene-based distributed search and analytics engine for text, vectors, logs and metrics.

compass vs elasticsearch →
OpenSearchSearch Engine56.6

Apache-licensed, foundation-governed fork of Elasticsearch for search, vectors and observability.

compass vs opensearch →
Apache SolrSearch Engine39.8

The original Lucene search server: battle-tested, Apache-governed, now with GPU-accelerated vectors.

compass vs apache-solr →
Apache LuceneSearch Engine38.6

The Java search library at the heart of Elasticsearch, OpenSearch and Solr, now with HNSW vectors.

compass vs apache-lucene →
MeilisearchSearch Engine32.3

Developer-friendly Rust search engine with typo tolerance and built-in hybrid semantic search.

compass vs meilisearch →
TantivySearch Engine22.6

Lucene-inspired full-text search library in Rust, the engine under Quickwit and ParadeDB.

compass vs tantivy →

Compass FAQ

What is Compass?

Compass is a search engine database by Shay Banon, first released in 2004. Compass was an open-source Java framework that Shay Banon started in 2004 to make Apache Lucene usable as an application data store. Its core idea was OSEM, object/search engine mapping: annotate domain classes and Compass indexed them, kept the index in step with Hibernate, JPA and other ORM writes, and wrapped Lucene in transactional index operations, a query builder and XML or JSON mappings. It was widely used from Spring and Grails applications in the late 2000s. While designing Compass 3.0, Banon concluded that a scalable, distributed engine speaking JSON over HTTP needed a rewrite, released Elasticsearch in 2010, and announced that Compass 2.x was in maintenance mode and users should plan to migrate. The final line was 2.2.0, and the project site is offline.

Is Compass open source?

Yes. Compass is open source. License: Apache License 2.0.

Does Compass support ACID transactions?

Partly. Compass offers limited ACID guarantees (for example, single-record or single-partition transactions), with strong consistency.

Does Compass scale horizontally?

Compass does not scale horizontally; it runs on a single node, so you scale it up rather than out. It is comfortable at small scale (≤ 100 GB).

How can I run Compass?

You can self-host it and embed it in your application.

What is Compass best for?

Compass is a strong fit for maintaining legacy Spring or Grails apps that still embed it and historical context for Elasticsearch's design. Think twice for new search projects.

What are the best alternatives to Compass?

Common alternatives to Compass include Elasticsearch, OpenSearch, Apache Solr, Apache Lucene and Meilisearch. The right choice depends on your workload, scale and hosting; WhichDB's smart match ranks them against your requirements.

Is Compass still maintained?

Compass is discontinued. Superseded by Elasticsearch (2010); the author put Compass 2.x into maintenance and the project site is offline. Last line: 2.2.0.

How popular is Compass?

Compass ranks #664 of 844 databases on the WhichDB Score (0.2/100), and #26 among search engine databases. The score combines public adoption signals such as package downloads, GitHub activity, job posts and developer discussion.