Install
Works with Drupal: ^10 || ^11Using Composer to manage Drupal site dependencies
Alternative installation files
Release notes
This is the first release of the 2.x branch of Search API Japanese Tokenizer.
In 2.x, all natural language processing is delegated to the JNLP module. This module now only bridges Search API processors to JNLP, which keeps the tokenization logic in one place and lets several Search API tokenizers share the same analyzers.
Highlights
- NLP processing (TinySegmenter, MeCab and Sudachi) is delegated to the JNLP module. The internal analyzer, parser and test-form code has been removed from this module.
- New Igo-php tokenizer submodule (
search_api_igo_php): a pure-PHP morphological analyzer that needs no external binary. - Analyzer paths (the MeCab executable, the Sudachi JAR, etc.) are no longer stored in the processor settings. They are configured in
settings.phpvia the JNLP submodules. - A tokenizer processor is now hidden from the Processors form when its analyzer is not available on the server.
- Config schema and
hook_requirements()checks were added for each submodule.
Requirements
- Drupal 10 or 11, PHP 8.1 or later
- Search API 1.37 or later
- JNLP ^1.0 (with the submodule that matches the tokenizer you use)
Enable only the submodule for the tokenizer you need: search_api_tinysegmenter, search_api_igo_php, search_api_mecab or search_api_sudachi. MeCab and Sudachi also require their external analyzers on the server; TinySegmenter and Igo-php are pure PHP.
Upgrading from 1.x
2.x moves NLP processing to JNLP and relocates the analyzer paths to settings.php, so upgrading requires a few manual steps. See the Upgrading from 1.x section of the README / project page for the full procedure.
This is a beta release: option names and form details may still change before 2.0.0. Bug reports and feedback in the issue queue are welcome.