pat / thinking-sphinx

Sphinx/Manticore plugin for ActiveRecord/Rails
http://freelancing-gods.com/thinking-sphinx
MIT License
1.63k stars 468 forks source link

Make MAXIMUM_STATEMENT_LENGTH customizable as in #1178 #1179

Closed kalsan closed 4 years ago

kalsan commented 4 years ago

Pull request for #1178

I hope this fits the "thinking sphinx" way to implement the changes.

pat commented 4 years ago

Generally looks great, thank you! :)

There's a couple of things that could be changed, though, if you have the time? (If you don't, no worries, I can make these tweaks myself later)

kalsan commented 4 years ago

Hi Pat

This is untested, hope everything works. I've never worked with rspec before so I tried to interpret your code and deduce the required logic for it to work. Please double-check as this might be error-prone! :-)

Cheers!

pat commented 4 years ago

Thanks for adding all of that in :) I've made a few further tweaks just to clean things up, particularly with that spec, though the core of what you'd supplied was spot on!

So it's been manually merged (which you can see in the list of commits) - greatly appreciate the contribution! 🎉