fix search index

This commit is contained in:
Pete Matsyburka committed 2026-08-29 16:29:52 +03:00
1 parent 2889a7c937
commit b44152fd52
1 file changed
+1 -1
+1 -1
View File
@@ -239,7 +239,7 @@ module SearchEntries
hyphens = text.scan(/\b[^\s]*?\d-[^\s]+?\b/) + text.scan(/\b[^\s]+-\d[^\s]*?\b/)
hyphens.uniq.each_with_index do |item, index|
entry.tsvector += " '#{item.delete("'")}':#{index + 1}" unless entry.tsvector.include?(item)
entry.tsvector += " '#{item.delete("'\\")}':#{index + 1}" unless entry.tsvector.include?(item)
end
entry