ActiveRecord::FullTextSearch
This gem adds support for TEXT SEARCH commands in a Rails (>= 7.2) app using PostgreSQL.
It is largely built using the gem activerecord-pg_enum. Thanks!
Usage
The gem permits to use these commands:
create_functiondrop_functioncreate_triggerdrop_triggercreate_text_search_templaterename_text_search_templatedrop_text_search_templatecreate_text_search_parserrename_text_search_parserdrop_text_search_parsercreate_text_search_dictionaryrename_text_search_dictionarydrop_text_search_dictionarycreate_text_search_configurationrename_text_search_configurationdrop_text_search_configurationadd_text_search_configuration_mappingchange_text_search_configuration_mappingreplace_text_search_configuration_mappingdrop_text_search_configuration_mapping
TODO
- Add tests
- Enhance (and extract?) functions support
- Enhance (and extract?) triggers support
- Support triggers with parameterized functions
- Support
UPDATE OF columnsin triggers - Support
TRUNCATEin triggers - Check recorder
- Manage schema (
publicis hardcoded)
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/codeur/activerecord-full_text_search. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the code of conduct.
License
The gem is available as open source under the terms of the MIT License.
Code of Conduct
Everyone interacting in the ActiveRecord::FullTextSearch project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.