Skip to content

codeur/activerecord-full_text_search

Repository files navigation

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_function
  • drop_function
  • create_trigger
  • drop_trigger
  • create_text_search_template
  • rename_text_search_template
  • drop_text_search_template
  • create_text_search_parser
  • rename_text_search_parser
  • drop_text_search_parser
  • create_text_search_dictionary
  • rename_text_search_dictionary
  • drop_text_search_dictionary
  • create_text_search_configuration
  • rename_text_search_configuration
  • drop_text_search_configuration
  • add_text_search_configuration_mapping
  • change_text_search_configuration_mapping
  • replace_text_search_configuration_mapping
  • drop_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 columns in triggers
  • Support TRUNCATE in triggers
  • Check recorder
  • Manage schema (public is 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.

About

FTS support for Rails apps

Resources

License

Stars

Watchers

Forks

Packages

No packages published