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

[5.0] Smart Search: Preventing stemmer exception #39959

Merged
merged 1 commit into from May 30, 2023

Conversation

Hackwar
Copy link
Member

@Hackwar Hackwar commented Feb 27, 2023

Pull Request for Issue #30372.

Summary of Changes

The stemmer in Smart Search throws an exception when there is no stemmer for that language. We catch that exception successfully, but when debugging with xdebug, the exception stops execution anyway. This change first checks if the language should be available before calling the stemmer factory.

Testing Instructions

Set the language for an item to *, start a debugging session with xdebug, save the item.

Actual result BEFORE applying this Pull Request

Xdebug stops execution with a NotFoundException exception.

Expected result AFTER applying this Pull Request

Xdebug does not stop.

Link to documentations

Please select:

  • Documentation link for docs.joomla.org:

  • No documentation changes for docs.joomla.org needed

  • Pull Request link for manual.joomla.org:

  • No documentation changes for manual.joomla.org needed

@Hackwar Hackwar added the Small A PR which only has a small change label Feb 27, 2023
@Hackwar Hackwar added the bug label Apr 7, 2023
@Hackwar Hackwar closed this Apr 18, 2023
@Hackwar Hackwar reopened this Apr 18, 2023
@Hackwar Hackwar changed the base branch from 4.3-dev to 5.0-dev April 18, 2023 12:56
@Hackwar Hackwar changed the title [4.3] Smart Search: Preventing stemmer exception [5.0] Smart Search: Preventing stemmer exception Apr 18, 2023
@laoneo laoneo removed the PR-4.3-dev label May 8, 2023
@HLeithner HLeithner merged commit a87c633 into joomla:5.0-dev May 30, 2023
1 check failed
@HLeithner
Copy link
Member

thanks

@Hackwar Hackwar deleted the 4.3-finder-stemmer2 branch May 30, 2023 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug PR-5.0-dev Small A PR which only has a small change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants