I'm working on a open-source project, BTC-Stores, and I think I found a issue in Rails Sunspot gem.
In my architecture I have Item
s, and each Item have one Country
and one Category
. The facets and the search by filters already is working (thanks to this answer), but I found a strange thing in count and mainly when showing my items.
First of all, if I go to rails console
and type the following, it prints:
Item.count # => 329
First strange thing:
When I search, Sunspot shows me more than 329 stores. See the page "breadcrumb" and understand:
What can be making this problem?
Second strange thing:
When I Search, the first page is (almost) okay, like you saw above. But when I go to "Page 2", I receive:
What means that none store was found by Sunspot search. Again, another "but": when I go to "Page 67", the last page, it's working again! (and still working for the last pages)
So, can you understand what's the problem without see any code? Anyway, thanks for help!