Ruby’s \w is basically [a-zA-Z0-9_] which is useless for many languages.
Thus the following code ↓ inside searchable.rb means search won’t work for extended latin, greek, cyrillic, what have you
def remove_invalid_search_characters(terms)
terms.gsub(/[^\w"]/, " ") // ***********************←
end
def quote_query_tokens(terms)
terms.scan(/"[^"]*"|\w+/) // ***********************←
.filter_map { |token| token.delete('"').presence }
.map { |token| %("#{token}") }
.join(" ")
end
Replace it with [[:word:]] and this should fix it according to the benevolent AI (I don’t know shit about RoR)

Ruby’s
\wis basically[a-zA-Z0-9_]which is useless for many languages.Thus the following code ↓ inside
searchable.rbmeans search won’t work for extended latin, greek, cyrillic, what have youReplace it with
[[:word:]]and this should fix it according to the benevolent AI (I don’t know shit about RoR)