DbSchema lets you design, manage, and document Apache Solr databases. Create ER diagrams, define tables and columns, and generate SQL scripts - with or without a live database connection.
Use Git to share the design, compare it with the Apache Solr database, and deploy changes. DbSchema also includes a data editor, query builder, and HTML5 documentation - everything you need in one tool.
Download DbSchema Download Apache Solr JDBC Driver
Apache Solr is a widely adopted enterprise search platform built on Apache Lucene that powers full-text search, faceted navigation, and real-time indexing for applications of all sizes. In standalone mode, Solr organizes data into cores, each with its own schema and index. In SolrCloud mode, data is stored in collections distributed across nodes and coordinated by Apache ZooKeeper for high availability and automatic failover. Each collection schema defines fields with types, analyzers, and copy-field rules that control how text is tokenized and indexed. DbSchema connects to Solr through the SolrJ JDBC driver and introspects collection field schemas, rendering them as schema diagrams that make the field structure visible without reading raw schema.xml files.
Solr exposes a SQL interface through Streaming Expressions that translates a subset of standard SQL into
native Solr queries executed across distributed collection shards. DbSchema's SQL editor connects over
this interface and provides auto-completion for collection names and field names, allowing analysts to
write SELECT, GROUP BY, and ORDER BY statements without learning
the Solr query syntax. Complex boolean search filters can be passed as WHERE predicates,
and aggregation functions like COUNT, SUM, and AVG are supported
where Solr's streaming aggregation engine allows them. Results appear in a paginated grid that is easy
to copy for reporting.
The DbSchema data explorer lets you page through indexed Solr documents without writing a query. You can filter the result set by any field value, which internally translates to a Solr filter query, and sort rows by numeric or date fields. This is especially useful for verifying that a newly indexed batch of documents contains the expected fields and values before opening the collection to search traffic. For SolrCloud collections with multiple shards, the explorer merges results transparently so you see a unified view of the full collection rather than shard-by-shard segments.
To connect DbSchema to Apache Solr, add the SolrJ driver JAR
(org.apache.solr.client.solrj.io.sql.DriverImpl) to DbSchema's driver manager. The JDBC
URL format is jdbc:solr://localhost:8983?collection=mycollection, where 8983
is Solr's default HTTP port and mycollection is the name of the collection to query. For
SolrCloud deployments you may point the URL at any node in the cluster; the ZooKeeper ensemble handles
routing internally. Authenticated clusters require adding username and password
parameters or configuring Kerberos, depending on your security setup. Once connected, DbSchema lists
all fields defined in the collection schema for visualization.