Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.0] Upgrade php-stemmer 2.0 #27568

Merged
merged 4 commits into from
Jan 24, 2020
Merged

Conversation

HLeithner
Copy link
Member

Pull Request for Issue #27329 .

Summary of Changes

Upgrade php-stemmer from version 1.2 to 2.0, refactoring stemmer class to use stemmer factory.

Testing Instructions

Use smart search with different languages and content.

Expected result

Nothing changes.

Actual result

Everything still works.

Refactoring stemmer integration by reducing the seperated classes and
using the stemmer factory to create a stemmer object.
This reduces maintenance because no change in Joomla! is required to
support new languages added by the upstream php-stemmer class
and we reduce complexity in Joomla! code base.
@brianteeman
Copy link
Contributor

Did you mean to delete all those files?

@HLeithner
Copy link
Member Author

Yes they are not longer needed.

@brianteeman
Copy link
Contributor

thanks for the clarification

@jwaisner
Copy link
Member

I have tested this item ✅ successfully on a2e5c36

Looks good. Cleared index and re-indexed successfully. Added multiple articles and categories and re-indexed. No errors and data indexed correctly.


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/27568.

@HLeithner
Copy link
Member Author

Thx for the text but I will change the exception later but shouldn't effect your test.
@mbabker would assume * as default language betyer instead throwing an exception?

@infograf768 infograf768 changed the title Upgrade php-stemmer 2.0 [4.0] Upgrade php-stemmer 2.0 Jan 21, 2020
@wilsonge wilsonge merged commit 66730a3 into joomla:4.0-dev Jan 24, 2020
@wilsonge
Copy link
Contributor

Thanks!

@wilsonge wilsonge added this to the Joomla 4.0 milestone Jan 24, 2020
@HLeithner HLeithner deleted the stemmer-update branch January 24, 2020 11:31
brianteeman pushed a commit to brianteeman/joomla-cms that referenced this pull request Feb 4, 2020
Refactoring stemmer integration by reducing the seperated classes and
using the stemmer factory to create a stemmer object.
This reduces maintenance because no change in Joomla! is required to
support new languages added by the upstream php-stemmer class
and we reduce complexity in Joomla! code base.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants