fix search index

pull/721/head
Pete Matsyburka 3 weeks ago
parent 2889a7c937
commit b44152fd52

@ -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

Loading…
Cancel
Save