- Can I use this package directly in Laravel for Elasticsearch or Scout?
- No, this package is designed for ZendSearch/Lucene 1.x and isn’t natively compatible with Laravel Scout or Elasticsearch. You’d need a custom wrapper or pre-processing step to integrate it into your search pipeline.
- Does this package support PHP 8.x or Laravel 9+?
- Unlikely. The package was last updated in 2015 and may require PHP 7.4 or earlier. PHP 8.x compatibility would need manual polyfills or a legacy PHP environment, which isn’t recommended for production.
- What’s the best way to integrate this into Laravel Scout?
- You’d need to create a custom token filter in Scout’s configuration. This package isn’t plug-and-play; you’d have to wrap the ZendSearch stemmer logic and inject it into Scout’s searchable attributes or a pre-indexing event.
- Are there modern alternatives for English/Russian stemming in Laravel?
- Yes. For Elasticsearch, use the `icu_tokenizer` with stemming filters. For PHP-only solutions, consider `php-stemmers` or `stemmer` packages, which support PHP 8.x and offer broader language coverage without legacy dependencies.
- Will this package work with Algolia or Meilisearch in Laravel?
- No, this package is tied to ZendSearch/Lucene 1.x. Algolia and Meilisearch have their own stemming/tokenization built into their APIs, so you’d need to configure those instead of using this package.
- How do I test stemming accuracy before deploying?
- Compare the package’s output against a known dataset (e.g., English/Russian word pairs with verified stems). Write unit tests in PHPUnit to validate edge cases like mixed-language queries or rare words.
- What PHP extensions are required for this package?
- It depends on `ext-zendsearch` (deprecated in PHP 8.x) and may rely on `ext-intl` for Unicode handling. If using PHP 8.x, you’d need to install `ext-zendsearch` via PECL or downgrade PHP.
- Is this package actively maintained or secure?
- No, it was last updated in 2015 and is abandoned. There are no guarantees for security updates or compatibility with modern PHP/Laravel versions. Use at your own risk or migrate to a maintained alternative.
- Can I use this for MySQL/PostgreSQL full-text search in Laravel?
- No, this package is for ZendSearch/Lucene and won’t integrate with MySQL or PostgreSQL’s full-text search. Those databases have limited stemming support, and this package adds no direct benefit for them.
- How do I handle performance issues with stemming in large datasets?
- Stemming is CPU-intensive. Benchmark the package’s impact on your indexing pipeline, especially for high-volume queries. Consider caching stems or offloading stemming to a background job if latency is a concern.