---
title: "Deploy spring-data-solr"
description: "Spring Data Solr Bookstore sample application"
category: "Starters"
url: https://railway.com/deploy/spring-data-solr
---

# Deploy spring-data-solr

Spring Data Solr Bookstore sample application

**[Deploy spring-data-solr on Railway](https://railway.com/template/spring-data-solr)**

- **Creator:** Bruce's Projects
- **Category:** Starters

## Template content

### solr

- **Image:** ghcr.io/tomaytotomato/spring-data-solr-solr10:latest

### spring-data-solr-sample-book

- **Image:** ghcr.io/tomaytotomato/spring-data-solr-bookstore:latest
- **Health check:** /actuator/health
- **Public domain:** Yes

## Documentation

# Deploy and Host spring-data-solr on Railway

Spring Data Solr is a modern Spring Boot starter for Apache Solr 10, resurrecting the archived `spring-data-solr` project. It provides auto-configuration, a repository abstraction, template API, and support for highlighting, faceting, and cursor-based deep paging.

## About Hosting spring-data-solr

This template deploys the spring-data-solr bookstore sample — a fully working REST API backed by Apache Solr 10. It provisions two services: a Solr 10 instance with a pre-configured `books` collection schema, and a Spring Boot application that loads 1,000 curated books on startup. The app exposes search, faceting, highlighting, and cursor-based pagination endpoints, along with Swagger UI at `/docs` and a Spring Boot Actuator health check at `/actuator/health`. No manual Solr configuration is required — the services are wired together automatically.

## Common Use Cases

- Evaluating spring-data-solr before adding it to an existing Spring Boot project
- Exploring the Solr search, faceting, and highlighting APIs with a real dataset
- Demoing a full-stack Spring Boot + Solr integration to a team or stakeholder

## Dependencies for spring-data-solr Hosting

- Apache Solr 10 (provisioned as a separate Railway service)
- JDK 21+

### Deployment Dependencies

- [spring-data-solr GitHub repository](https://github.com/tomaytotomato/spring-data-solr)
- [Apache Solr Reference Guide](https://solr.apache.org/guide/solr/latest/)
- [Spring Boot Docker Compose support](https://docs.spring.io/spring-boot/reference/features/dev-services.html)

### Implementation Details

The app service requires one environment variable pointing at the Solr service's internal Railway hostname:

```
SPRING_SOLR_STANDALONE_HOST=http://:8983/solr
```

The template sets this automatically. If you redeploy manually, find the internal hostname under the Solr service's **Networking** tab in the Railway dashboard.

## Why Deploy spring-data-solr on Railway?

Railway is a singular platform to deploy your infrastructure stack. Railway will host your infrastructure so you don't have to deal with configuration, while allowing you to vertically and horizontally scale it.

By deploying spring-data-solr on Railway, you are one step closer to supporting a complete full-stack application with minimal burden. Host your servers, databases, AI agents, and more on Railway.


## Similar templates

- [open-excalidraw](https://railway.com/deploy/open-excalidraw) — Self-hostable collaborative drawing built on Excalidraw
- [caring-vibrancy](https://railway.com/deploy/caring-vibrancy) — Deploy and Host caring-vibrancy with Railway
- [Appsmith](https://railway.com/deploy/appsmith-1) — Low-code platform for internal tools, dashboards, and admin panels.

Open this page in a browser: https://railway.com/deploy/spring-data-solr
