Changes for Koha libraries

RustSearch release notes

Dated fixes and setup changes, newest first. These updates retain version 0.6.0; the KPZ filename and checksum identify the exact build. A newer plugin upload alone does not update the server integration.

0.6.0 — schema-6 upgrade by index rebuild

· Build b6ccc623af59

Servers still running a schema-6 engine now have a direct upgrade path. Instead of the guarded migration workflow, setup installs the schema-7 engine and rebuilds the index from the catalog. Searches keep working on another engine while it runs.

What happens

Other changes

Updating: compatible schema-7 servers update as before with the bundled --update command; their indexes are retained. Schema-6 servers use --rebuild-index. If fallback was off before the upgrade, the fallback engine has not received catalog changes made since; check that its index is current before rebuilding.

Checks: 1,980 Perl assertions and 311 Python tests passed, with five privileged cases skipped. The rebuild has been tested with simulated servers; it has not yet been run against a live schema-6 installation. Engine source is unchanged from build 5a887f5f95a3.

Earlier package · retained in this release

0.6.0 — Rust-first fallback, invalid ISBN lookups and installer cleanup

· Build 5a887f5f95a3

Optional fallback while RustSearch is selected

The fallback setting on the plugin’s configuration page now applies while RustSearch is the selected SearchEngine. Every search RustSearch supports still runs in Rust first. Only when a search fails in Rust, or uses something RustSearch cannot run, does the configured Zebra or Elasticsearch engine answer it.

ISBNs with a bad check digit

An ISBN whose check digit is wrong, a common publisher misprint, no longer makes the search request fail. Before this fix, saving a catalog record with such an ISBN in 020 $a could fail with an error, because Koha’s duplicate check received no decision. The lookup now matches only records carrying exactly the same digits and never treats the value as equivalent to a valid ISBN. Text that is not an ISBN finds no match instead of an error. Records indexed before this update gain the exact-digit match when they are next reindexed; until then the lookup returns no match for them rather than an error.

Installer disk space and cleanup

Unreadable authority records

Some imported authorities contain a subfield coded with a quotation mark, usually a 670 citation that lost its $b. Koha stores these as MARCXML it cannot read back, so the authority could not be opened or indexed, and RustSearch authority setup never finished (“Authority MARC unavailable”).

Plugin page

Updating: upload the KPZ in place, then run the bundled --update command; the ISBN fix is in the engine, so --existing-engine alone does not apply it. The authority repair runs in the indexing worker, which either command installs. There is no schema change and compatible schema-7 indexes are retained. Before enabling fallback, make sure the fallback engine’s own index is current.

Checks: 1,950 Perl assertions and 308 Python tests passed, with five privileged cases skipped. The engine’s 70 tests passed on an x86-64 build; the ARM64 build was not re-tested for this change. The default keyword, legacy control-character and authority indexing fixes are included.

Earlier package · retained in this release

0.6.0 — default keyword search requires all words

November 18, 2026

A plain keyword search such as tax notes now behaves like tax AND notes. Both words must match, and they can appear in different indexed fields. Use tax OR notes to match either word, or "tax notes" to require the phrase.

The change aligns the default operator with the observed Zebra search. Hit sets can still differ because the engines index and normalize catalog data differently.

Apply the bundled engine update to get the new behavior. Compatible schema-7 indexes are retained without a rebuild. The legacy control-character and authority indexing fixes are included.

0.6.0 — legacy MARC and call-number indexing

November 18, 2026

Tabs, line breaks, and other Unicode C0 and C1 control characters in pasted or imported data could cause the worker to report HTTP 400 for an entire batch. A rejected batch could leave unrelated titles missing from search.

The worker now uses spaces in indexed text and item call numbers. It skips control-damaged identifiers and codes in lookup fields. The source MARC and item values remain in Koha.

Update the plugin and the installed worker. Existing compatible schema-7 engines can retain their indexes and resume scheduled retries. Verify the queue and catalog coverage after updating.

Earlier package · retained in this release

0.6.0 — authority initialization and automatic indexing

· Build d12afdf95b10

Repairs missing native authority indexes that could interrupt blank searching and Z39.50 saving. Setup and updates initialize capture, ensure automatic schedules exist and start a bounded cycle. Explicit pauses remain visible and can be resumed with --resume-authorities.

Stored legacy rows keep their MARC, IDs and links; missing headings are not fabricated. All 69,976 authorities on the affected installation indexed successfully, and the customer confirmed the original save workflow. Current checks passed 1,852 Perl assertions and 297 Python tests, with five privileged skips.

Earlier engine builds require --update. Compatible bibliographic indexes are retained; no full bibliographic reindex is needed.

Earlier package · retained in this release

0.6.0 — OPAC advanced-search form repair

· Build 4aa8663f2b91

Fixes advanced OPAC searches being rejected when Koha includes its weighting-checkbox submission marker. The marker describes form state; the adapter no longer mistakes it for an unsupported search operation.

Passed 1,708 Perl assertions and the 273-case Python suite, with five privileged cases skipped. The customer confirmed the repair worked on the affected installation. Engine source and schema 7 are unchanged; this does not introduce a new ranking algorithm.

Update the existing plugin in place, then run bundled setup with --existing-engine on a compatible schema-7 installation. No engine rebuild or reindex is needed for this repair.

Earlier package · retained in this release

0.6.0 — installer account-access hardening

· Build cdf40bd492c6

Fixes a runtime parent directory being created without Koha-account traversal under the launcher’s private umask. This could stop installation before the lifecycle helper could run.

The 273-case Python suite passed with five privileged cases skipped locally; separate real-account and Ubuntu container tests cover ACL denials and noexec mounts. Native search and schema 7 are unchanged. This is supported-layout hardening, not certification for every cloud image.

Update the existing plugin in place. For an unfinished first installation, rerun its normal setup command. Compatible installations may use --existing-engine for this installer-only change; --update also refreshes the engine when needed. No reindex is required.

Earlier package · retained in this release

0.6.0 — general update guidance and compatible updater correction

· Build afb945d8efb5

The plugin’s Update RustSearch section now gives reusable instructions for updating the engine and plugin. Release-specific fixes and incident details belong in these dated release notes.

Validated with 254 Python tests and 1,671 Perl assertions. The unchanged engine matches the previously validated ARM64 and x86-64 source provenance. The separately reported Z39.50 save HTTP 500 remains unresolved.

Earlier package · retained in this release

0.6.0 — staff keyword barcode repair

· Build c868bd7b0cab

Repairs a missing barcode result in general staff keyword search when explicit Barcode search already finds the item. The simple keyword path now searches the barcode projection already present in schema 7.

Portable ARM64 and x86-64 builds passed the 77 native HTTP checks, including barcode regressions, and the 31 optional API checks on each architecture. The Configuration page now distinguishes engine updates from plugin-only refreshes.

The November 2 barcode-only repair did not address Z39.50 saving. The November 6 authority-initialization repair now has customer-confirmed save acceptance; see the latest release above.

Earlier package · retained in this release

0.6.0 — optional OpenSearch API and Swagger

· Build 75037fe2d36e

An additional, experimental interface for trusted local applications. OpenSearch clients can run the supported read-only searches and counts against the existing RustSearch bibliographic index. Native Koha integration and the index schema stay unchanged.

API checks passed on ARM64 and x86-64 using the official OpenSearch Python client 3.2.0. Enablement requires an engine refresh and a separate administrator opt-in; uploading the KPZ alone does not enable it.

Earlier package · retained in this release

0.6.0 — larger Koha result pages

· Build 31c1a0e8b34a

Fixed staff and OPAC searches failing with “Invalid pagination parameters” when Koha requests more than 100 records per page. The adapter collects the requested page in native requests of at most 100 records, within the supported 10,000-result window.

Update the existing plugin; do not uninstall. Upload the new KPZ and run its bundled setup with --existing-engine on a compatible schema-7 server. No engine rebuild or reindex is needed. If search is currently restored by a 20-result page-size workaround, keep that setting until the update completes.

Verified with 1,668 Perl assertions and real Koha searches at 20, 200 and 500 records per page, including later pages and ID/order comparisons. The earlier performance optimizations and activation guard remain included.

Download pagination-fix KPZ · SHA-256 checksum · Update instructions

Earlier package · retained in this release

0.6.0 — schema-7 activation and update repair

· Build 08e6965757cb

Update in place; do not uninstall. Upload the new KPZ. If the check reports a compatible local engine, run the same bundled command with --existing-engine instead of --check-only. The read-only check does not apply changes. Schema-6 servers need coordinated migration.

Repair instructions · Download corrected KPZ · SHA-256 checksum

Verified with 1,631 Perl assertions, targeted activation/update/integrity tests and checks of the bundled source manifest. Existing native engine optimizations are retained.

Earlier package · retained in this release

0.6.0 — bounded item lookup and text normalization

· Build ebed7eb6b4f2

In local synthetic measurements, warm item-ID latency fell about 97% at 150,000 items; at one million items the bounded fallback limited the gain to about 20%. These are native-handler measurements, not a whole-import or browser speed claim. Published historical benchmark charts are unchanged.

Install the engine change

Fresh setup builds the bundled engine when missing. Existing libraries must rebuild and refresh the native executable with a coordinated backup/probe/restart procedure. A KPZ upload or --existing-engine refresh alone preserves the older executable. Compatible schema-7 indexes do not need a full reindex for this update. Batch sizes, schedules and engine selections are unchanged.

Earlier package · retained in this release

0.6.0 — search while indexing

· Build 45c1cad66db6

Apply to an installed library

Upload this KPZ without uninstalling. To enable OPAC using the updated plugin and reload Plack, replace INSTANCE in the paths and final argument with the library’s instance name:

sudo koha-shell -c 'perl -I/var/lib/koha/INSTANCE/plugins -MKoha::Plugin::Com::LightwaveLibrary::RustSearch::OpacActivation -MJSON::PP -e "print JSON::PP::encode_json(Koha::Plugin::Com::LightwaveLibrary::RustSearch::OpacActivation->request)"' INSTANCE
sudo koha-plack --reload INSTANCE

SELECT RUSTSEARCH IN SEARCHENGINE to use the current index. No full reindex or catalog changes are required. The normal --existing-engine refresh also installs this behavior in the protected worker copy.

Verified with pending work and ten retrying decoding errors. Historical behavior described below is superseded by this update.

0.6.0 — protected multi-tenant setup

· Build a393940d4f77

Updating an existing library

  1. Upload the latest KPZ through that library’s Koha plugin manager; do not uninstall the existing plugin.
  2. Open the plugin’s Configuration page and follow its updated SSH instructions. For a compatible schema-7 engine, use the existing-engine refresh command. For an unfinished first installation, rerun normal setup for that instance.
  3. Check indexing status and readiness, then test staff and OPAC searches. SELECT RUSTSEARCH UNDER ADMINISTRATION > SEARCHENGINE TO USE THE CURRENT INDEX. Indexing completeness is diagnostic; the separate OPAC flag validates visibility enforcement.

The compatible refresh reuses the engine binary and indexes and does not request a full reindex. Older or incompatible indexes require a separate migration. A failed setup can leave earlier steps installed; keep its log and backup paths.

Using an earlier extracted setup folder? It still contains the old installer. Use the newly uploaded KPZ’s setup guide to extract and run the corrected bundle.

Verified with 249 Python tests, 1,618 Perl assertions and a full setup run against a protected tenant plugin directory.

0.6.0 — OPAC activation and engine switching

· Earlier build d8d8ce412ce6; included in the latest package

0.6.0 — tenant setup and optional authorities

· Included in the latest package

Installation, upgrades and validation details

Pagination repair — build 31c1a0e8b34a: update the existing plugin; do not uninstall. Larger Koha pages now use bounded native requests instead of failing above 100 results. Run the bundled server setup before SELECTING RUSTSEARCH IN SEARCHENGINE. Compatible schema-7 engines use --existing-engine; schema 6 requires coordinated migration. The corrected activation guard refuses incompatible engines. Repair instructions.

The latest build adds bounded item-ID lookup and faster ASCII normalization. Existing installations need an engine binary refresh; a KPZ upload alone does not update the executable. Performance update and upgrade details.

Release acceptance passed for the documented Koha MARC21 profile on ARM64 and x86-64. Validate your library’s catalog and settings in staging before production. Historical benchmark snapshots remain labeled as measurements, not live telemetry.

These notes describe packaged changes, not live server telemetry. Published benchmark statistics retain their saved measurements. See setup, migration and limits for the supported profile. When RustSearch is selected, searches execute in Rust without automatic fallback to another engine.