Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message
Lucene Stemmer En Ru

Lucene Stemmer En Ru Laravel Package

nqxcode/lucene-stemmer-en-ru

View on GitHub
Deep Wiki
Context7

ZendSearch morphology token filter for english and russian words.

Frequently asked questions about Lucene Stemmer En Ru
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.
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
terminal42/code-quality-tools
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky