dougal / acts_as_indexed

Acts As Indexed is a plugin which provides a pain-free way to add fulltext search to your Ruby on Rails app
http://douglasfshearer.com/blog/rails-plugin-acts_as_indexed
MIT License
211 stars 49 forks source link

Limits return inconsistent results #49

Open joshsmith opened 11 years ago

joshsmith commented 11 years ago

I can run the same query with different limits and get completely different results.

For example, I have a User.create(first_name: "Josh"). When I call User.find_with_index("Josh", { :limit => 10 }), it returns an empty array, but User.find_with_index("Josh", { :limit => 40 }) will return the desired result.

Strangely, anything >= 31 that I've tried so far works as desired, but anything less does not.