Running XWiki search on a remote Solr server: when the embedded index stops being enough
A separate Solr server is needed when the embedded index can no longer serve the wiki well, usually in a clustered deployment or a wiki with a large page count. Teams running search on the default embedded Solr should move it out only after they can name the symptom that justifies the change, such as slow or inconsistent results across nodes, index rebuilds that disrupt users, or a wiki that has outgrown the single instance it was sized for. Moving the index is an infrastructure change with its own operating cost, so it should follow a measured problem, not precede one.
The search index is what makes XWiki's search, and the search features built on it, return results quickly. When Solr runs inside the XWiki deployment, the index lives beside the application and is managed with it. When Solr runs on its own server, XWiki sends indexing and query requests over the network, so the team takes on the Solr server's availability, storage, backups and version compatibility with the XWiki release. The XWiki application configuration points to the remote instance through settings such as SOLR_BASE_URL in Docker or the Solr option in the Helm chart, and those names must be checked against the documentation for the exact release in use.
The research behind this topic does not include Solr version numbers, sizing figures or Helm value names, so the team must confirm each of them against the XWiki and Solr documentation for its chosen release before writing configuration. Before the cutover, plan a full reindex, confirm which Solr version the chosen XWiki release supports, and decide how the index is rebuilt after a failure. Ask the vendor or the XWiki community for the supported sizing guidance for the wiki's page count, and make sure the test environment reproduces the production data volume before the move.
Embedded Solr or a remote Solr server: which option fits
This table compares the embedded Solr that ships with XWiki against a separate Solr server across single-instance Docker, clustered Docker or Kubernetes, and a large wiki on a shared search service. Read each row as a question to answer for your environment: who runs the search process, what holds the index, and how upgrades are sequenced. The main takeaway is that a remote Solr server adds a component you must own, so choose it when clustering or scale requires it.
| Decision area | Embedded Solr (single instance) | Remote Solr server (shared or dedicated) |
|---|---|---|
| Single instance in Docker | Usually sufficient; Solr runs inside the XWiki container with no extra service to operate | Optional; adds a second container to deploy, monitor and back up for little gain on one node |
| Clustered Docker or Kubernetes | Each XWiki node holds its own index, which does not suit multiple nodes sharing one wiki; confirm behavior in your version | Preferred pattern for clusters, so all XWiki nodes query one search service; confirm the setting in your chart version |
| Large wiki on a shared search service | Search load and memory compete with the wiki application on the same host | Lets the search service be sized, scaled and monitored separately from the wiki application |
| Operational ownership | XWiki team owns search as part of the application container | Platform or infrastructure team must own the Solr service, its hosts, patching and access |
| What must be backed up | Index is normally rebuildable; back up the database and attachments first, and confirm index recovery steps | Solr data directories and configuration must be captured, though the index can usually be rebuilt by reindexing |
| How upgrades are coordinated | Upgraded together with the XWiki image, so one change window covers both | Solr version and XWiki compatibility must be checked before each change; confirm the supported Solr version in the XWiki release notes |
| Configuration entry point | Default setup; no search endpoint is set | SOLR_BASE_URL environment variable in Docker; Solr option in the Helm chart on Kubernetes; confirm exact names in your chart version |
| Reindexing after a change | Reindex as part of the XWiki maintenance window | Reindex after switching the endpoint, because the new Solr server starts without the existing index |
When a separate Solr server is worth the extra moving part
A separate Solr server adds a service to patch, monitor and back up, so it should earn its place. The situations below share one question: does search need its own capacity, lifecycle or shared index that the embedded setup cannot give you. Measure the points in each card before you decide.
Several nodes sharing one index
When you run more than one XWiki node behind a load balancer, every node must query the same search index. A remote Solr server gives the nodes one shared index instead of separate embedded copies that can drift apart. Before deciding, confirm how many nodes you plan to run and whether each node would otherwise hold its own index state. Check the cluster design in the Helm chart or Docker setup you plan to use.
Indexing competing with page serving
On a large wiki, reindexing after a bulk import or a heavy editing period uses CPU, memory and disk on the same host that serves pages. A separate Solr host isolates that load so readers keep a responsive wiki while indexing runs. Measure page response times and JVM memory during a full reindex on a copy of your data before you commit to this design.
Scaling or restarting search on its own
Search may need more memory, a restart after a configuration change or a version upgrade on a different schedule from the wiki itself. Running Solr separately lets you change search capacity or restart it without taking the wiki down. Ask who owns the search service during maintenance windows and whether your change process covers two services.
A platform team already running Solr
If your platform team already operates Solr for other applications, a dedicated XWiki core can fit existing monitoring, backup and patching routines. The extra moving part then carries less new operational burden. Confirm that the team's Solr version and configuration practices match what the XWiki release you choose expects before you connect them.
Backups and recovery planned separately
A separate search server needs its own backup and recovery decision, because an index can be rebuilt from wiki content but the rebuild takes time. Decide whether you restore the index from a snapshot or reindex after a restore, and measure how long a reindex takes on your largest wiki. This check often decides whether the separate server is worth its cost.
When embedded search is still the better choice
A single small instance with few users rarely needs a separate search service. The embedded Solr keeps one fewer component to patch, monitor and secure, and reindexing stays simple. Stay with the embedded setup until you can name a concrete problem, such as slow page loads during indexing or a need for several nodes, that a remote server would solve.
How XWiki nodes reach a remote Solr server
Requests start at users, pass through a reverse proxy to the XWiki nodes, and stay inside the internal network from there. Each XWiki node sends indexing and search requests to a separate Solr service, which sits on the far side of a trust boundary. The database and the attachment storage each have their own path from the nodes, so they are not shared with the search tier. Check that the Solr port is reachable only from the XWiki nodes and that every hand-off stays on the internal network.
Illustrative layout, not a required reference design.
Where the Solr address is set in Docker and in the Helm chart
The official XWiki images read a SOLR_BASE_URL setting when the container starts, so you can point each container at a Solr server that runs outside it. Set the value to the address the XWiki container resolves inside its own network, not the address a browser or laptop uses. Every XWiki container that serves the wiki must reach the same endpoint, because each node queries the same index.
- Value format: include the scheme, host, port and the Solr path your server exposes. Confirm the expected format in the official image documentation for the tag you run.
- Network path: open the route from each XWiki container to Solr, including container networks, host firewalls and any proxy in between.
- Credentials: if your Solr endpoint requires authentication, pass the secret through the same mechanism you use for database passwords, such as Docker secrets and
_FILEvariables where the image supports them. Keep it out of compose files stored in version control. - Version alignment: confirm that your Solr release works with the XWiki version tag you are running before you change the setting.
Check: start one XWiki container with SOLR_BASE_URL set, read the startup logs for connection errors to the Solr address, then search for a page you know exists.
The xwiki-contrib Helm chart includes a Solr option that deploys Solr as a separate workload instead of leaving the index inside the XWiki pods. Key names and defaults change between chart releases, so treat the values file for the exact chart version you install as the source of truth, not a copy from an older guide or a forum post.
- Enable the option: find the Solr section in the values file and identify the key that turns on the separate deployment, and whether the chart creates the Solr service or expects one you supply.
- Service address: confirm the service name and port the chart generates and how the XWiki pods receive that address before you add any override.
- Storage: check whether Solr gets its own persistent volume claim, and review the default size and storage class in the values file for your environment.
- Version pinning: record the chart version with each release, and compare the values file against that version when you upgrade.
- Credentials: if the Solr deployment requires authentication, keep the secret in a Kubernetes Secret and reference it through the mechanism the chart documents.
Check: run helm template with your values file, confirm that the rendered XWiki deployment carries the Solr address, then install into a test namespace and run a search for a known page.
Teams that run XWiki from a WAR file on Tomcat, on virtual machines or on bare metal cannot use the Docker variable or the Helm chart keys. The setting for a remote search server lives in the configuration files of that installation, so the team that manages the application server owns it. Find the exact property name in the XWiki installation documentation for your version and confirm it there before you edit any file.
- Configuration ownership: agree who maintains the search settings, since they sit alongside the rest of the application configuration on each host.
- Network rules: every application node must reach the same Solr endpoint, with the same firewall and proxy rules you would apply to a container.
- Restart behavior: confirm whether a configuration change takes effect only after the application server restarts, and plan that restart into the change window.
- Configuration drift: keep the setting in your configuration management tooling so that a new node receives the same value automatically.
- Upgrade review: check the property name again whenever you move to another XWiki line, because configuration names can change between versions.
Check: from each application node, send a request to the Solr endpoint with curl and confirm that it responds, then confirm that a search returns a page you know exists.
Moving search to a remote Solr server in six steps
This sequence moves XWiki's search index from the embedded Solr to a separate Solr server in a controlled order, so each XWiki node searches the same index and you can roll back at any point.
Confirm the XWiki version and image tag
Record the exact XWiki version and image tag you run in production, for example the stable, intermediate LTS or LTS tag you chose for the deployment, and confirm the Solr server version you plan to use is compatible with that XWiki release by checking the release notes for your version. Also record the database variant and the Helm chart version if you deploy on Kubernetes. Done when a written change record names the XWiki tag, the Solr target and the rollback owner, and someone other than the author has reviewed it.
Rehearse the change in a non-production copy
Restore a recent backup of the wiki database and attachments into a non-production environment, keep the embedded search configuration available there, and run the full change against a separate Solr server in that copy first. Note how long the reindex takes in the copy so you can plan the production window. Done when the copy starts, search returns results from the remote Solr, and the team has written down every command and config value used.
Stand up Solr and confirm network reachability
Deploy the Solr server in your infrastructure with a persistent volume for its index data, and restrict access so that only the XWiki nodes can reach its HTTP port. From each XWiki node or pod, test the Solr endpoint with a simple HTTP request from inside the same network path that XWiki uses, and confirm the Solr core for XWiki is created or reachable. Done when every XWiki node gets a successful response from Solr and the core status shows it is ready.
Set the remote address in Docker or Helm values
Point XWiki at the remote Solr by setting the SOLR_BASE_URL variable for a Docker deployment, or the Solr option in the Helm chart values for a Kubernetes deployment, and keep the previous embedded settings in version control so you can revert them quickly. Apply the same value to every node so no node keeps a different search backend. Done when the rendered configuration (the container environment or the generated Helm manifest) shows the same Solr address on every node and the change is committed.
Restart or roll XWiki nodes in a controlled order
Restart the Docker containers or roll the Kubernetes pods one node at a time, waiting for each node to pass its health check and serve pages before moving to the next. Keep at least one node serving traffic throughout, and watch the logs for Solr connection errors during startup. Done when every node reports healthy, the logs contain no repeated Solr connection failures, and the wiki loads through the load balancer.
Run the reindex and verify search from each node
Start the reindex from the XWiki administration interface once all nodes are running on the remote Solr, and wait for it to finish before judging the results. Then run the same test searches against each node separately, comparing results for known pages and attachments, and check the Solr core document count against the number of pages you expect. Done when a reindex completes without errors, every node returns the same results for your test queries, and the index health check shows no outstanding failures. Keep the embedded configuration available until these checks pass in production, so you can roll back if they fail.
What reindexing does to a live wiki and how to plan the cutover
Moving search to a new Solr server means the new server starts empty, so search results stay incomplete until the reindex finishes. Users will not see an error. They will simply miss pages and attachments that exist in the wiki, which is why the cutover needs to be planned as a window with known behavior rather than a silent switch. Before you change SOLR_BASE_URL or the Helm chart's Solr settings in production, decide when the gap starts, how long you expect it to last and who owns the go or no-go call. Duration depends on wiki size, attachment volume and the hardware behind both XWiki and Solr, so measure it on a test copy of your wiki with the same data and hardware class before you set any expectation with users.
Schedule the reindex outside peak working hours for every region that uses the wiki, and plan for it to run longer than the test copy suggests if editing continues during the window. Tell users in advance, in the places they already read (intranet banner, team channel, release note), that search may return fewer results for a stated period and that page reads and edits still work. Name a fallback for urgent lookups during the gap, such as browsing the space tree or a named owner who can answer questions. Agree in advance who can see the reindex job status and who decides to end the window early, because a reindex that is still running at the planned end is common when attachment volume is high.
When the reindex completes, compare the new index with the source before you announce that search is back. Check that the page count in the Solr index matches the page count in the wiki for the same scope, and that attachment search returns hits for a sample of files of each common type, including large files and files in deeply nested spaces. Keep the comparison as a written checklist with the numbers recorded, so the same test can be repeated on the production cutover. For pages edited or created during the reindex, confirm with your XWiki administrator how changes made after the job began are picked up, then re-run a targeted check on those pages. Confirm this behavior against the documentation for your XWiki version, since the handling of in-flight changes is a detail to verify in your own environment rather than assume.
Security and operations of a separate search tier
A separate Solr server adds a network service, a data store and a second upgrade track to your XWiki estate. The cards below cover the controls that keep that tier closed, the index protected, and the two products moving together after go-live.
Limit Solr access to XWiki nodes
Solr should accept connections only from the XWiki application nodes, usually through a firewall rule, a security group or a Kubernetes NetworkPolicy that names those pods. Solr's HTTP API has administrative endpoints, so any other client reaching the port is a risk. To verify, connect from a host outside the XWiki subnet or namespace and confirm the connection is refused, then check that each XWiki node still reaches the Solr URL you configured.
Keep Solr off public endpoints
Place the Solr server on a private network with no public IP, no public DNS record and no route through a public load balancer or reverse proxy. Solr should not appear in external scans of your perimeter. Confirm this from outside your network, and confirm that any operator access uses your normal administrative path, such as a VPN or bastion, with its own logging.
Treat the index as sensitive data
The search index holds extracted page text, attachment content and the fields used to decide what a user may see, so it carries the same classification as the wiki itself. Restrict who can read the Solr data directory, the Solr admin UI and the backup location, and encrypt storage and backups according to your data classification policy. Ask your team to confirm where the index files live on disk.
Decide between backup and rebuild
The index can usually be rebuilt from the database and file store, so a backup of the index mainly shortens recovery time. Decide which you need, then test it: restore the Solr data into a staging server, run a search, and time a full reindex on a copy of your largest wiki. Record both results so the recovery plan reflects measured effort rather than assumption.
Monitor index health and disk growth
Watch Solr node status, the number of documents in each collection compared with the page count in XWiki, query and indexing errors, and free disk space on the index volume. Index size grows with content and attachments, and a full disk can stop indexing silently. Set alerts on these signals and review them after each large import or reindex.
Upgrade Solr and XWiki together
Check the XWiki security advisories and the Solr release notes for the versions you run before choosing target versions, and confirm which Solr version your XWiki release supports. Upgrade in a staging copy first, run a reindex, and then move production. Keep the two versions in a written matrix so a security fix in either product does not leave the pair out of step.
XWiki SAS homeLimits to confirm before you change the search setup
Before you move XWiki's search index to a separate Solr server, confirm four things in your own environment instead of assuming them. First, confirm which Solr version your chosen XWiki release supports. The research for this page did not supply Solr version or sizing figures, so take the supported Solr version and the hardware it needs from the XWiki documentation and the Solr project, not from this page. Second, if you deploy with the Helm chart, confirm that the chart version you pin exposes the Solr option described in this section and check its values file for the exact keys, because chart options change between versions.
Third, find out how the search index behaves across cluster nodes during restarts. Ask whether every XWiki node points at the same Solr endpoint, what happens to indexing and search while Solr restarts, and whether a node that comes back up needs a reindex. Fourth, confirm which Solr topology options the XWiki documentation supports, such as a single standalone instance or a replicated setup, and whether your team can operate the one you pick. Write down the answers, because each one changes your backup, monitoring and failover plan.
Finally, read the XWiki release notes for the version you plan to run, and look for what they say about reindexing after an upgrade. A major or minor upgrade may require a full reindex, which can take a long time on a large wiki and may affect search results while it runs. Plan the maintenance window around that statement, test the procedure on a copy of your data, and ask the vendor or the XWiki community to confirm any point the notes leave unclear. Get sizing and version details in writing before you approve the capacity plan.
Questions teams ask before moving XWiki search to Solr
What does moving XWiki search to a remote Solr server cost?
The cost is mostly staff time plus the infrastructure for a separate Solr host, and it is largely one-time for the move, with recurring costs for running the server. Staff time covers planning the topology, changing the XWiki configuration, testing search behavior, running the reindex and updating monitoring and backups. Infrastructure covers the Solr hosts, storage for the index, and the network path between XWiki and Solr. What drives the effort up is the size of the wiki, the number of XWiki nodes, the number of environments that must be kept in step, and how many search-dependent features your team relies on. Ask any partner for a written scope that lists each component, who performs it, the environments covered, the testing approach, and what is delivered at the end. A quote that cannot show that breakdown is hard to compare.
How long does the switch and the reindex take?
The duration depends on the size of the content to index, the throughput of the Solr host and storage, and how much of the wiki must remain searchable during the change. Planning, configuration and testing usually take longer than the reindex itself, and the reindex is often scheduled in a window when editing load is low. Ask for the reindex plan to state the expected source size, the method used, how progress is measured, and what the team does if the index is incomplete. Because no figure applies to every wiki, confirm the estimate against a test run on a copy of your own data before setting a cutover date.
What does the internal team need to provide?
The internal team needs to provide access to the XWiki and Solr environments, knowledge of how the wiki is deployed (Docker, Helm chart or other), and a named owner who can approve the cutover. Someone must also confirm which features depend on search, which users and spaces are sensitive, and when editing freezes are acceptable. Staff who run the database and the reverse proxy should review the network and connection changes. Time spent on these inputs is part of the engagement cost, so ask a partner to list them explicitly in the scope.
Can our own team move search to Solr without outside help?
Yes, a team with Linux, container or Kubernetes experience and access to the XWiki configuration can make this change, provided it has a test environment and a rollback plan. The work is manageable for small installations, but the risk grows with cluster size, search-dependent workflows and the number of environments. Outside help makes most sense when the team has no spare capacity for testing, when the cutover must happen on a fixed date, or when the wiki holds regulated records that need documented evidence of the change. Whichever route you choose, write down the steps, the verification checks and the rollback path before starting.
Do we need a separate Solr server for a single XWiki instance?
A single instance can often run with the embedded Solr, so a separate server is usually a decision driven by requirements rather than a default. It becomes more useful when several XWiki nodes must share one index, when the index is large enough to compete with the wiki for memory and CPU, when you want to scale or restart search independently, or when operational policy separates search from application hosts. Review your own load and growth before deciding, and confirm the supported setup for your XWiki version in the official documentation.
What happens to search if the remote Solr server goes down?
When the remote Solr server is unreachable, search results and some features that query the index can fail or return incomplete results, while ordinary page viewing and editing may continue. Plan for this by monitoring Solr availability, defining an alert and response owner, and keeping the index backed up or rebuildable. Confirm with your partner or your XWiki version which operations depend on Solr and how the instance behaves during an outage. Test the failure on a staging copy, and document the recovery steps, including how long a full reindex would take on your own data.
How DeployOpen works on this
DeployOpen plans and implements the move of XWiki search to a separate Solr server inside your own infrastructure, starting with a written scope that names your wiki sizes, clusters and deployment method. The work is delivered in tested stages so that search behavior, reindexing and operations are checked before the change reaches production users.
How we scope
- Review your deployment method, XWiki version line, database variant and whether you run a cluster or a single instance
- Confirm the Solr hosting model, network path, storage and backup expectations inside your environment
- Agree in writing the deliverables, test environments, reindexing window and acceptance checks before work starts
How we build
- Configure the remote Solr endpoint through SOLR_BASE_URL for Docker or the chart's Solr option for Kubernetes
- Plan and run a full reindex in a staging copy first, timing it against your largest wiki and recording the results
- Test search results, permissions-filtered results, failover behavior and restarts against a checklist agreed in the scope
How we hand over
- Deliver configuration as code, with the Solr endpoint, credentials handling and cluster settings documented for your team
- Provide a runbook covering reindexing, index health checks, Solr upgrades and rollback to the embedded search
- Walk your administrators and engineers through the runbook and leave them with the evidence from acceptance testing
How we support
- Offer ongoing support, upgrades and continuous testing as a retainer after handover, scoped separately from the project
- Retest search and reindexing when you move to a new XWiki line, Solr version or database variant
- Keep the scope fixed for the project itself, and agree any added Solr work through a written change to that scope

