The Stemmer processor should have a supportsIndex() which checks whether English is actually one of the site languages. If not, the processor shouldn't be available at all, it's just confusing.

Comments

drunken monkey created an issue. See original summary.

varshith’s picture

Status: Active » Needs review
StatusFileSize
new1.08 KB

Added supportsIndex() to Stemmer processor.
Works for custom language codes like en-GB too (Ref: https://www.w3.org/International/articles/language-tags/).

drunken monkey’s picture

Thanks, looks great!
I just reformatted the code a bit and added a short test. Please test/review!

drunken monkey’s picture

Status: Needs review » Fixed

Committed. Thanks again!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.