Manage books with epilogue — https://epilogue.micro.blog
This commit is contained in:
@@ -37,10 +37,7 @@ module Adamantium
|
||||
end
|
||||
|
||||
def search(term:)
|
||||
ref = dataset
|
||||
.full_text_search([:content], [term])
|
||||
.select(:id)
|
||||
where(id: ref)
|
||||
where(Sequel.ilike(:content, "%#{term}%"))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user