Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Super interesting gem!

`Document.search(query).limit(limit).map(&:title)` how do you defined the documents to search on?



That’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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: