Manage books with epilogue — https://epilogue.micro.blog

This commit is contained in:
2023-12-02 11:30:00 +11:00
parent 1edad91c2f
commit 734352d25e
4 changed files with 42 additions and 6 deletions

View File

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