How XWiki search configuration affects adoption of a self-hosted wiki
A knowledge base is only useful if people can find its pages, and search quality often decides whether a migrated or large XWiki gets used after go-live. When staff search, land on stale or duplicate pages, and cannot find the document they were told to read, they return to email, shared drives or the old tool. Search is therefore an adoption issue as much as a technical one. The hard part is rarely switching search on. It is verifying that the search index matches the content users actually see, and keeping it that way after the events that change content in bulk: a Confluence import, a platform upgrade, or an extension being added, removed or updated.
XWiki search depends on an index built from wiki content, so the index can drift from reality after a bulk import, a restore from backup, or a change in the servlet container or database. Symptoms are usually subtle: recently migrated pages missing from results, attachments not found, or results that include pages the user cannot open. Before you open the wiki to users, plan a test pass. Pick a sample of migrated spaces, search for page titles, distinctive phrases and attachment names, and record which expected results are missing. Repeat the same check after each upgrade and each extension change. Confirm with your XWiki support provider or the official documentation how the index is rebuilt in your version, how long a rebuild takes on your content volume, and whether it can run without taking the wiki offline.
Large wikis raise the stakes. The more pages and spaces you have, the more users depend on search rather than navigation, so ranking and scope settings matter more. Decide early which spaces should appear in default search, how people will find pages by owner or tag, and who owns the review of stale content. Also ask your team to confirm which search features your chosen XWiki line provides out of the box and which depend on extensions, since extensions add their own maintenance step. Treat search as a measured feature: agree on a short list of real queries from pilot users, check results at each milestone, and make the list part of your cutover and upgrade checklists.
Which parts of XWiki search you configure
XWiki search is not one setting. It spans the index that stores content for lookup, the search screens users see, the database and servlet container that hold and serve pages, and the extensions that change what gets indexed. Review these parts together, because a fix in one often shows up as a symptom in another.
Search index and indexing process
The index is the store that search queries read from, and it is built from page content and metadata as pages are saved or as a full reindex runs. Check whether the index is current after a migration or upgrade, and whether a full rebuild has ever been run on the instance you are operating. Confirm the indexing settings, admin paths and the reindex procedure against the documentation for the XWiki line you run, since these vary by version.
XWiki SAS homeSearch user interface and results
Users reach search through the search box, the search results page and any filters the skin exposes. Results only look wrong when the index, permissions and page content disagree, so test with real queries from each user group. Confirm which search scopes and result filters your installed skin and version provide before promising behavior to users.
Database and servlet container
The database stores pages, attachments and metadata, and the servlet container (Tomcat in the official images) serves requests and runs the indexing work. Undersized memory, slow storage or a database that is not tuned will make indexing and queries slow even when the configuration is correct. Ask your team to confirm the database variant, container memory settings and the backup point before any large reindex.
Docker image docsPermissions as a search filter
Search results must respect XWiki rights, so a page a user cannot view should not appear to them in results. Permission design therefore shapes what search shows, and a permission change can look like a broken index. Test queries as a representative user in each group after changing rights, and confirm how your version filters results for guest access.
Extensions that change indexed content
Extensions can add new page types, macros or applications whose content is stored differently, and some change how text is extracted or ranked. Each extension you install may need its own indexing check, and an extension upgrade can change results without any content change. Review the extension list for every search-related change, and confirm compatibility with your XWiki line before upgrading.
Migration and upgrade side effects
Imported content and version upgrades are the most common reasons an index drifts from the content it describes. Imported Confluence pages and attachments can arrive with different metadata than native XWiki content, which affects what gets found. After each migration or upgrade, run a reindex, then compare sample queries against known pages before users return to the wiki.
How search setup differs by deployment model
The official images run XWiki on Tomcat with a MySQL, PostgreSQL or MariaDB database, and the XWiki Core Dev Team maintains them. Your team controls the container, the mounted volumes, the memory limits and the logs, so search state is only as durable as the volumes you attach. Read the Docker official image documentation for XWiki for the volume layout before you decide where the index is stored.
- Index location: Mount the XWiki permanent directory as a persistent volume, and include the search index in the same backup schedule as the database. Confirm which path holds the index for your image tag.
- Reindex scheduling: You decide when full reindexing runs, from the administration screens or scheduled jobs. Run heavy reindexing outside business hours and keep the job output.
- Container memory: Set container limits and the Tomcat heap together. An index that outgrows its memory slows both queries and indexing, so base the limits on measured index growth.
- Logs: Container logs reach your runtime by default, but search errors also appear in the XWiki and Tomcat logs inside the container. Forward both to your log platform and set a retention period.
Before go-live, confirm with the image maintainers which search components and settings apply to the stable, LTS or intermediate LTS tag you run, because admin screens and defaults can differ by line.
A manually installed WAR on a self-managed servlet container gives your team the widest control. You choose the operating system, the servlet container version, the JVM, the database and the file system where the permanent directory and the search index are stored. That control also means every search dependency is your responsibility, from disk sizing to log rotation and the upgrade path.
- Index location: Choose the permanent directory and index path during installation, and place them on storage with enough free space for growth and reindex operations. Document the path so backups and restores target the same location.
- Reindex scheduling: Your team triggers and schedules reindexing, and it can run alongside other maintenance windows you define. Plan a reindex after every WAR replacement, since an upgrade can change the index.
- Container memory: You set the JVM heap and the servlet container thread limits directly. Size them for concurrent searches and indexing jobs on the same node.
- Logs: Configure logging for XWiki and the servlet container yourself, including log levels that capture search failures without flooding disk.
- Upgrade checks: Test search on a staging copy with a production-sized index before replacing the WAR in production.
Confirm with the XWiki project documentation and your support provider which Tomcat and Java versions your release supports, and which search settings require configuration files rather than the administration interface.
On XWiki Cloud, XWiki SAS manages the platform, including the servers, the containers and the infrastructure that hosts the index. Your team controls what the wiki exposes to administrators, such as search-related settings, reindex triggers where offered, page structure, permissions and extension choices. You do not get shell access, direct access to index files, container memory settings or server logs, so the questions you ask before signing matter more here than in the self-managed models.
- Index location and backup: Ask where the index is stored, whether it is included in backups, and how long a restore takes in practice.
- Reindex and recovery: Ask whether a reindex is needed after provider maintenance or upgrades, who runs it, and whether it can be scheduled.
- Capacity: Ask how memory and storage are sized for your content volume and when limits change as the wiki grows.
- Logs and evidence: Ask whether search and access logs are available to you, how long they are kept, and in what format they can be exported.
- Certification scope: XWiki SAS states that its cloud runs on ISO 27001 certified infrastructure. Ask for the certificate scope and confirm it covers the search and backup services you rely on.
Get these answers in writing, and compare them with the controls your security and compliance teams need to review.
Content changes reach search through the database and indexer
Content enters XWiki from three places: a page edit, a bulk import, or a Confluence migration. Each write lands in the wiki database first, and the indexing process reads those changes and updates the search index. Search queries read only from that index, so a page can exist in the database yet be missing from results. Extensions and upgrades sit on the indexing path and are the most common points where the flow breaks. After any migration or upgrade, run known test queries, compare the results with the pages you expect, and rebuild the index if pages are missing before tuning relevance.
Content changes reach search through the database and indexing process, with breakpoints marked.
Configuring and validating search step by step
This sequence takes XWiki search from an unverified state to a documented configuration that returns expected results and hides restricted pages. Each step ends with a check you can record and repeat after the next upgrade or migration.
Confirm the XWiki line and database variant
Record which XWiki line you run (stable, LTS or intermediate LTS), the exact version, the database variant (MySQL, PostgreSQL or MariaDB) and the servlet container. The official Docker images are published in these variants, so confirm the tag you deploy matches the line your organization has chosen. Your infrastructure team and XWiki's release notes should agree on the version string. Done means a written version record that the search steps can reference, and that matches the running instance's administration page.
Record baseline search behavior on a test copy
Restore a recent backup of production to a separate test environment, never to the live wiki. Run a fixed set of queries that represent real user questions, such as a known page title, a term that appears in several spaces and a term that appears only in attachments. Save the result counts and the top results for each query. Done means you hold a baseline file that shows what search returns before any change, so later differences are attributable to your work.
Review indexing and extension-specific search settings
Check the search-related administration options in the test copy, including which content types are indexed, how attachments are handled and any settings added by installed extensions. Compare against the extensions inventory, because some extensions add their own search sources or macros that the core index does not cover. Confirm each change with the owner who will sign off on it. Done means a list of every search setting you changed or chose to keep, with the reason, stored alongside the baseline.
Run a full reindex on the staging copy
Trigger a complete reindex on the staging copy rather than relying on incremental updates, since migrated or restored content may not have been indexed correctly. Watch the server logs for errors during the run and note the time it took on your hardware so you can plan the production window. Do not start this on production until the staging results pass the checks in the following steps. Done means the reindex completes without unresolved errors in the logs and the instance responds normally to page views during and after the run.
Compare indexed and stored page counts
Compare the number of pages returned by a search for a broad wildcard or all-pages query against the page count reported by the wiki's own administration or a database query. Repeat the comparison per space for large spaces, since gaps often appear in one area rather than everywhere. Investigate any space where the counts diverge, including pages with unusual characters in titles or pages created by migration tools. Done means every space's indexed count matches its stored count, or each gap is explained and recorded.
Run known-page and attachment queries
Run the queries from the baseline again against the reindexed staging copy. Confirm that a known page title appears as the top result, that terms in page body text return the expected pages and that attachment content is found only where your settings say it should be. Compare each result set with the baseline and document any change in ranking or coverage. Done means every baseline query returns the expected result, and each intentional difference has an owner and a reason.
Verify that restricted pages stay hidden
Create or use test accounts that represent different groups, including a guest or unauthenticated user, and confirm that each account sees only the pages its rights allow in search results. Include queries that match restricted page titles and body text, because a search index can expose content even when page views are blocked. Use the rights model documented for the wiki to define the expected results before testing. Done means each test account's result list matches the expected list, and any leak blocks promotion to production until it is fixed and retested.
Promote the validated configuration to production
Apply the recorded configuration changes to production in the same order you tested them, then run the reindex and repeat the count comparison and the permissions check on a sample of spaces. Keep the baseline, the change list and the test results with your change record so that the next upgrade or migration can repeat the checks. Done means production search results match staging for the sampled queries and the change record is complete and stored where your operations team can find it.
Decisions that shape search quality and operating load
This table compares the main choices for XWiki search: reindex timing, which spaces to index, default search or a dedicated search service, and maintenance window or live reindexing. Read each row by asking what it costs in operator time, downtime risk and index freshness, then match the option to your wiki's size and change rate. Confirm the exact reindex and search behavior for your XWiki line in its documentation before committing to a schedule.
| Decision | Option | When it fits | Trade-off to weigh |
|---|---|---|---|
| Reindex timing | Scheduled full reindex | Stable content with predictable change volume and a known quiet period | Predictable operator effort, but results can lag between runs and a heavy run needs planning |
| Reindex timing | On-demand reindex | Small wikis or targeted fixes after a migration, import or upgrade | Fresh when triggered, but depends on someone remembering to run it and on checking the result |
| Space scope | Index all spaces | Wikis where every space is active and users expect complete results | Largest index and longest runs, with archived or sandbox content competing for relevance |
| Space scope | Exclude archives and sandboxes | Large wikis with retired spaces or test areas that pollute results | Smaller index and cleaner results, but the exclusion list needs an owner and periodic review |
| Search architecture | Default XWiki search | Moderate content volume and mainly keyword-style lookups | Lowest number of moving parts, but ranking and filtering options are limited to what the instance provides |
| Search architecture | Dedicated external search service | Very large wikis or advanced ranking needs that the default search does not meet | More components to host, secure, monitor and upgrade, and a sync process to keep in step with XWiki |
| Reindex window | Maintenance window with read-only or reduced access | Large indexes, major upgrades or migrations where consistency matters most | Users lose search or writes during the window, and overruns push into business hours |
| Reindex window | Live reindex during normal use | Teams that cannot accept downtime and have headroom in CPU, memory and database capacity | Slower responses for users during the run and a higher risk of partial or stale results if it fails |
Keeping the index healthy after Confluence migrations and upgrades
Imports and upgrades are the most common reason an XWiki search index goes stale or incomplete. Pages that arrive through a bulk import, or pages whose content was changed by a migration script, may not be indexed the same way as pages created in the editor, and a version upgrade can change how the search index and its extensions behave. After a Confluence move, the first task is a full reindex of the wiki, run once the import has finished and before users are told that search is ready. Confirm the reindex procedure for your exact XWiki line with the release notes and the administration documentation for that version, because the menu path and the way the job is triggered can differ between stable and LTS releases.
Check searchability with a fixed set of test queries rather than by spot-checking a few pages. Build the list from your own content: titles of pages with long history, pages carrying attachments, pages with user and group metadata, and pages that were moved between spaces. For attachments, confirm that the file name and any extracted text return the expected page, since Confluence Migrator Pro keeps page history but not attachment history, so older attachment versions may be absent and should not be assumed to be searchable. Scope of what the migration tool transfers belongs to the XWiki migration from Confluence work, so this section only covers verifying the result in search.
Re-run the same query set after every extension upgrade and after every platform upgrade, because search-related extensions and macros can change output without any change to page content. Record each change in the change log: the XWiki version before and after, the extension versions changed, the date of the reindex, the query set used, the queries that failed and the fix applied. Keep the log with the upgrade record so that a later search complaint can be traced to a specific change. Ask your implementation partner to include this query set and log template in the handover, and confirm who on your side owns the retest when a future upgrade is scheduled.
What drives search configuration effort and cost
This table lists the factors that change how much work XWiki search configuration takes and what each one costs to carry. Read each row as a driver, its effect on indexing and result quality, and the step that keeps it manageable. The main takeaway is that most search effort comes from content and permissions decisions made before the first import, not from tuning the search engine afterward.
| Driver | Why it changes effort or cost | How to keep it down |
|---|---|---|
| Page and attachment volume | Larger page counts lengthen initial indexing and reindexing after imports or upgrades, and attachment text extraction adds load on the index. | Archive stale spaces, remove duplicate attachments and decide which attachment types need full-text search before migration. |
| Number of spaces | More spaces mean more scope decisions for search filters, scopes and ranking, and more places where content can be missed. | Consolidate spaces that share an audience and document a small set of search scopes that map to business areas. |
| Number of languages | Each language adds analyzer choices, stemming behavior to test and queries that must be checked in every language used. | Limit the supported languages to those people actually search in and test a sample query set in each one. |
| Number of imports | Every bulk import from Confluence or another source triggers reindexing and may introduce duplicate or malformed content that affects results. | Run one pilot import, validate search results, then batch the rest so each load can be checked before the next. |
| Extension count | Search-related extensions, macros and custom indexing code each have their own upgrade path and can break indexing after a version change. | Keep the extension list short, pin versions, and retest search after every upgrade in a non-production environment. |
| Custom search code | Custom Java, scripts or queries need ongoing ownership, testing and changes whenever XWiki or dependencies move to a new line. | Prefer standard search features and configuration first, and document every custom component with an owner. |
| Environments (test, staging, production) | Each environment needs its own index, representative content and a repeatable reindex procedure, which multiplies setup and verification work. | Keep a sanitized copy of production content for staging and automate the reindex and smoke-test steps. |
| Permissions complexity | Search results are filtered by rights, so complex group and page-level rules increase the checks needed to confirm users see only what they should. | Simplify rights at space level where possible and test search results with representative test accounts for each group. |
| Audit evidence for access | Compliance reviews may ask how search access follows permissions and how index changes are logged, which requires retained records and repeatable checks. | Keep test results, reindex logs and permission test records together so an assessor can trace each control to evidence. |
Access control and secrets in search
Search is a second way into your content, so it must enforce the same rights, admin controls and storage protection as the pages it indexes. The cards below cover where search can leak restricted information, who should control indexing, how index and database storage should be protected, and how to vet search extensions before they run.
Rights applied to search results
Search results must be filtered by the viewer's XWiki rights, so a restricted page does not appear by title or in a text snippet. Test this with a non-admin account that has no access to a sample restricted space, searching for distinctive phrases from that page. Confirm the exact behavior for your XWiki line and any extensions with the XWiki security documentation before you rely on it.
XWiki SAS homeAdmin-only index and reindex tools
Index maintenance pages and reindex actions expose wiki structure and can trigger heavy background work, so they should be restricted to administrators. Review which groups can reach administration pages and any scripting rights that could start reindexing. Record who holds these rights and check them after each upgrade or migration.
Index and database storage protection
The search index and the database hold copies of your content, so they need the same protection as the content itself. Apply the same encryption, backup retention, access restrictions and network isolation to index storage and database backups as to the wiki. Confirm with your database and servlet container documentation how the index directory is stored and who can read it on the host.
Search extension review before installation
Search-related extensions run with the rights of the code they contain and can alter how results are indexed or displayed. Before installation, check the publisher, source, version compatibility and the rights the extension requests, and test it in a staging wiki with restricted pages. Keep an approved list so that extensions added later go through the same review.
xwiki-contrib OIDC sourceScripting and macro exposure
Scripting rights and macros that run queries can return data beyond what a page displays, so limit who can create or edit them. Review which users can insert search macros or run queries across spaces. Confirm the current scripting rights model with the XWiki security documentation before granting exceptions.
How to test that search works and fails safely
A search rollout is only ready when you have shown that it finds the right pages, hides the pages it should hide, and tells people clearly when it is out of date. Start with a fixed query set: write 30 to 50 queries drawn from real support tickets, onboarding questions and the names of your most-used spaces, and record the page you expect to see in the top results for each one. Include a few queries for content that only exists in attachments, in page titles and in macro output, because those are the cases that break first after a Confluence migration or an upgrade. Run the set after every change to the index settings, the search extension or the XWiki line, and keep the results in a spreadsheet so that a drop in ranking is visible before users report it. The expected pages should be chosen by the content owners, not by the implementation team, so the test measures what the business needs to find.
The permissions test matters more than the ranking test. Create at least three accounts that represent different rights: an anonymous or guest user if guest access is allowed, a standard member of one space, and a member of a restricted space. For a set of pages that each account must not see, run the same queries as that account and confirm that the restricted titles and snippets do not appear in results, suggestions or counts. Repeat the check after changing group membership, because search results can lag behind rights changes if the index is not updated as expected. Ask your security team to review the outcome, and confirm with XWiki documentation for your exact version how the search index handles rights before you assume this behavior.
The restore and failure drill shows whether the search layer can be recovered without guesswork. First, rebuild the index from the database in a staging copy and confirm that the query set returns the same expected pages. Then deliberately make the index stale in staging, for example by changing pages while the indexing process is stopped, and check what users see: stale results, missing pages and any message or admin indicator your setup provides. Write down the recovery steps as a runbook and have an administrator who did not build the setup follow it. Confirm the rebuild time on your own data volume, because it depends on the size of the wiki and the hardware, and record how long users would wait so that the outage message you publish is accurate.
What to monitor, back up and document after go-live
How do I tell whether the XWiki search index is healthy after go-live?
Check that the index agrees with the wiki content and that indexing jobs finish on schedule. These two signals catch most post-go-live problems, including gaps left by migrations, failed jobs after an upgrade and extensions that stopped indexing their pages. Set a baseline in the first weeks, while the content is known to be complete, and compare every later check against it. Confirm which status pages, job views and logs your chosen XWiki line exposes, because the names and locations may differ between stable and LTS releases. Ask your implementation partner to record the baseline numbers and the exact screens in your runbook so an operator can repeat the check without the original project team.
Which indexing job metrics matter most for search?
Track whether each indexing job finished, how long it took and how that duration changes over time. A job that completes but runs much longer after an upgrade may signal growing content, a slower database or an extension that adds work for each page. Record the start time, end time, status and any error for every run, and alert when a run fails or overruns the duration you measured in your baseline. Confirm in your XWiki line whether job status appears in the administration interface, in scheduled task views or only in logs, since operators will need that location in the runbook. Keep enough history to compare the last several runs across each upgrade window.
How do I compare index counts with content counts?
Compare the number of documents the index holds with the number of pages and attachments that should be searchable, then investigate any gap. Counts should match closely after a full reindex, but some differences are expected for content the index excludes by design, such as hidden or restricted spaces. Define those expected exclusions before you measure, so a gap has a clear meaning. Run the comparison on a schedule, not only after incidents, and use the same counting method each time, with the same spaces and filters. Confirm with your XWiki line how pages and attachments are counted in its search administration before you write the expected numbers into your runbook.
Where should I look for XWiki search query errors?
Search query errors usually appear in the servlet container logs and in XWiki's application logs, so the first step is to confirm where your deployment writes them. Look for three patterns:
- Failed queries that return errors to users, which point to index or backend availability problems.
- Slow queries that time out, which often follow large imports or a database under load.
- Malformed query or permission-filter errors, which can appear after a migration changes users or groups.
Forward these logs to a central store your team already operates, and tag each entry with the wiki and time window. Confirm which log files, levels and rotation settings apply to your Tomcat and XWiki versions, because container deployments may send logs to standard output unless you configure them otherwise.
What should a reindex runbook include?
A reindex runbook should let an operator rebuild the index safely without guessing. Start with the trigger conditions, such as a failed migration, an extension change or a suspected corrupted index. Then list the steps: announce the window to users, take a backup, confirm the database and attachment storage are healthy, start the reindex, watch job status, compare counts against the baseline and record the sign-off. Include rollback steps for a failed rebuild and the expected search behavior during the rebuild, because results may be incomplete while it runs. Name who may start a reindex, since a full rebuild on a large wiki can add load to the database and servlet container. Test the runbook on a non-production copy before the first real incident.
Which backups cover search after go-live?
Back up the database and attachment storage, since they hold the content that search depends on. The search index is usually rebuildable from that content, but confirm that assumption in your own environment and document the rebuild time. A backup set should cover the database, attachment storage, the XWiki configuration and any extension files, with a restore test on a regular schedule. After each restore test, check that the restored wiki reindexes cleanly and that counts match the baseline, because a backup that restores pages but leaves search broken still costs time during an incident. If your deployment keeps index files on a separate volume, back that volume up too or document how to rebuild it. Ask your team to confirm the backup tool, retention period and restore test frequency in writing.
How do I document changes to search-related extensions?
Keep a change record for every extension, configuration change and version that affects indexing, search display or permission filtering. Each entry should carry the date, the old and new versions, the reason for the change, the person who approved it and the test result. Extensions are a common source of unexpected search behavior after an upgrade, so link each record to the upgrade test that covered it. Store the configuration changes in version control alongside the rest of your deployment files. Confirm with your XWiki line which extensions and settings touch search before you start the register. Review the register at every upgrade and security release, because either one can change extension compatibility.
Who should own search quality reviews after go-live?
Name one accountable owner, usually in the knowledge management or platform team, and give that person the time and authority to act on findings. The owner runs a scheduled review that checks whether common queries return the right pages, whether restricted content stays hidden from users who lack rights and whether the index is current. Support staff and content owners supply the failing queries, while the platform team fixes indexing and configuration. Agree on a review cadence and a short set of test queries drawn from actual user questions. Write the owner, the cadence and the escalation path into the runbook so the responsibility survives staff changes.
How DeployOpen works on this
DeployOpen plans, implements, documents and supports self-hosted open-source platforms inside the client's own infrastructure. For XWiki search, that means agreeing the search scope in writing, configuring and testing the index in your environment, and handing over the settings and runbooks your team needs to keep search healthy after go-live.
How we scope
- Inventory the wiki size, spaces, attachments and languages that search must cover before choosing configuration changes.
- Agree in writing which search behaviors, indexing jobs and result tuning are in the fixed scope and which are excluded.
- Confirm the XWiki line, database and servlet container that the search configuration must match, with your team.
How we build
- Configure and verify the search index on a staging copy of your wiki before any change reaches production.
- Test search quality with representative queries from real users, including permission-filtered results for different groups.
- Check index rebuild behavior after a Confluence migration or XWiki upgrade and record the steps that worked.
How we hand over
- Deliver a written configuration record listing each search setting, its value, and the reason it was chosen.
- Provide a runbook for rebuilding the index, checking index health and diagnosing missing or stale results.
- Walk your administrators through the runbook so they can run the routine checks without DeployOpen involvement.
How we support
- Engagements are fixed-scope, so the support boundary for search work is agreed in the written scope.
- Ongoing support, upgrades and continuous testing are available as a retainer if search needs regular attention.
- Ask in your quote how post-go-live search issues are triaged, retested and reported to your team.

