3scale/issues-test — Issue #61: sphinx indexes out of synch
Author: HakubJozak
Created: 2012-02-10 17:19:41+00:00
State: open

check the emails for explanations:

*NilClass* case

* create a blog post
* rebuild sphinx indexes
* search for some word in the post and watch your results
* clean_install again the db => this will remove all content from the db (using DatabaseCleaner)
* search the word again
* you'll get the exception

*tricky case*

* create a blog post with word "lorem"
* rebuild sphinx indexes
* search for some word in the post and watch your results
* clean_install again the db => this will remove all content from the db (using DatabaseCleaner)
* create a blog post with word "dolor"
* search the word "lorem" again
* you'll get in the search the "dolor" one even though it does not include the "lorem"

Tasks
- Make sure sphinx indexes are updated when you do clean_install.

https://www.pivotaltracker.com/story/show/6266379