ThinkingSphinx, search_for_ids returns limited ids array
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)"
精彩评论