Just a General FYI for #Ruby users of #Mongoid
I believe there is a bug in Mongoid 4.15 that breaks expectations of querying has_and_belongs_to_many relationships. Ticket here:
I spent most of yesterday trying to fix the mongoid support in meilisearch-rails. After spending nearly a day with it i'd still barely wrapped my head around all the complexity. Lots of ong complicated untested methods.
Just before going to bed my brain realized "this is just a really complicated implementation of a simple wrapper"
This morning, after walking the dogs, I cranked out a little under 200 lines of code that implements basically all of it in a bunch of small, testable, easy to reason about methods.
Haven't written tests yet, but this afternoon I actually used the new lib and have working, configurable, easy to use, #Meilisearch integration for #Mongoid backed models.