Overview
IIIF Search is a module for Omeka S that adds the IIIF Content Search API for full-text search.
This article introduces the usage of the following module, which includes modifications for handling Japanese text.
https://github.com/nakamura196/Omeka-S-module-IiifSearch
Installation
Clone the source code from GitHub. Replace omeka-s as appropriate for your environment.
Note that when installing from GitHub, you need to rename the folder to the target module name as shown above.
After installation, a form is displayed for setting the minimum character length for search queries. When handling Japanese text, I recommend setting this to 1.

Creating ALTO Format XML Files
You need to create XML files in ALTO format, which is one of the formats for describing OCR results.
https://www.loc.gov/standards/alto/techcenter/elementSet/index.html
For creating ALTO format XML files, the following article may be helpful.
For example, for the following image file:

An XML file like the following can be generated.
Uploading Image and XML Files to Omeka
Upload the image and XML files as shown below. Note that the filenames (excluding extensions) of the image and XML files must match. (In the example below, alto_test.)

As a result, a Universal Viewer with a search form is displayed on the item display screen as shown below. (This assumes that IIIF Server and IIIF Viewers are already installed.)

When entering a search term, the matching portion of the title is highlighted.

Summary
I introduced a module that adds the IIIF Content Search API functionality.
The process of generating ALTO format XML files has room for improvement. Future tasks include modifying the module to automatically create ALTO format XML files, or modifying it to support OCR file formats other than ALTO.
I hope this serves as a helpful reference for understanding the behavior of the IIIF Content Search API.