Developed gem make_model_searchable for adding simple search functionality to models
Here’s the link to gem make_model_searchable. This gem provides moduler solution to add search functionality for selected fields. It let’s specify which fields you want to make searchable adding searchable_attributes in model. If no field is specified it searches given query string inside all string fields. It uses ARel nodes for implementing search. To have a look at source code or to contribute please visit github repository for make_model_searchable Support for associations will be added soon. Please review it and give me your valuable feedback and suggestions to my github repo. Thanks.
Comments
This is pretty simple but its good. Do you know about the gem Search_cop it’s a more full solution that’s nearly as simple.
Just checked out search_cop, it’s really wonderful gem. Support of full text search, lots of options and DSL, it’s great! This is my first gem and it would be amazing to contribute to such good projects.
Post a comment