3 ms·
Super interesting gem! `Document.search(query).limit(limit).map(&:title)` how do you defined the documents to search on?
by hartator 2y ago
Super interesting gem!
`Document.search(query).limit(limit).map(&:title)` how do you defined the documents to search on?
- breckenedge 2y agoThat’s an example of what your code could look like. For example, you might have a Rails app with a Document model and have added search to that model via Searchkick. Then this code is called by the library to execute a search.