开发者

ThinkingSphinx, search_for_ids returns limited ids array

开发者 https://www.devze.com 2023-03-26 21:19 出处:网络
I have noticed in Rails console that Model.search_for_ids.s开发者_如何学编程ize != Model.all.size

I have noticed in Rails console that Model.search_for_ids.s开发者_如何学编程ize != Model.all.size

Moreover Thinking Shpinx method search_for_ids returns maximum 20 entries.

Any idea how to set unlimited entries for search_for_ids?

:per_page works but in my opinion, it's ugly to write code like that

Model.search_for_ids :with => conditions, :per_page => 1294967294


According to ThinkingSphinx, "Sphinx paginates search results by default. Indeed, there’s no way to turn it off (but you can request really big pages should you wish)"

0

精彩评论

暂无评论...
验证码 换一张
取 消