pat / thinking-sphinx

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

Set a default cutoff for Manticore. #1239

Closed pat closed 1 year ago

pat commented 1 year ago

Since Manticore 5.0, their default cutoff is the same as the search request’s page size - which helps make search requests faster. The unfortunate trade-off is that it means pagination breaks because we no longer know what the actual total number of results is (Manticore stops counting once the cutoff is reached).

So, at least for now, we’re going to set a default cutoff of 0, which essentially removes that limit. Judging by the CI results, Sphinx is fine with this too.