Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I was having problems with short words that were subject to stemming not being indexed or searchable. Words like "eka" or "öga" will be stemmed to "ek" and "ög" and with the default word size setting of 3, these will not be indexed nor searchable. This patch makes it so that strings that would be stemmed to be less than index word size circumvent stemming.
You can also lower the word size to 2. Still, that doesn't get around the problem that there might be two letter words you may want to index, words would be stemmed without this patch, such as "ås" or "is".
Comment | File | Size | Author |
---|---|---|---|
#1 | swedishstemmer-word-size-limit.patch | 960 bytes | solipsist |
swedishstemmer-word-size-limit.patch | 960 bytes | solipsist |
Comments
Comment #1
solipsist CreditAttribution: solipsist commentedA less than or equal should be a greater than or equal :)
Comment #2
frjo CreditAttribution: frjo commentedCommitted to HEAD and 6-dev, will be part of the next release. Thanks!