ModernSearchlogic
Searchlogic for Rails 3+!
Note: this is a fork of Genius/modern_searchlogic. Unlike upstream, this repository is published to RubyGems (and has versioning).
Supported Versions
The Gem is tested on Rails 3-8 (except 6, because I'm lazy), using the latest version available. For the older versions, it uses Rails LTS so we don't need to maintain Ruby 3 patches here as well.
The gem might work on Ruby 2, but it is only tested against Ruby 3.3.
Usage
Just add the Gem to your gemspec, and the searchlogic methods will be available. Refer to the searchlogic documentation for more details.
Contributing
Optional, but required for running specs against Rails 3-5: a Rails LTS subscription.
If you do have one, create a .bundle/config
with contents:
---
BUNDLE_GEMS__RAILSLTS__COM: "theusername:thepassword"
- Install Ruby 3.3
- Run
bundler install
- If you DON'T have a Rails LTS subscription, comment out the Rails 3-5 appraisals in the
Appraisal
file - Run
bundler exec appraisal install
- Start the database. You can use Docker compose to do this the easy way. If you go the manual route, make sure authentication is optional
- You are now ready!
Running Specs
# Run for ALL Rails versions:
$ bundle exec rake test
# OR for a specific Rails version only (replace 7 with the major version of Rails):
$ bundle exec rake rspec7