For some reason no users that were added to the DB after rake thinking_sphinx:index (or configure) are being displayed. I tried rebooting the server, stopping thinking sphinx then restarting and configuring. Still running into the same issue.
When I run rails c and do User.search I only get the results from the DB that were created before the index/configure was run.
I just flushed out the DB to push this project into production by running.
rake db:reset
Then I rebooted the server and I am running into this issue. When I run the configure I get this in my searchd.log file:
[Tue Jan 15 18:56:02.491 2013] [ 1742] rotating indices (seamless=1)
[Tue Jan 15 18:56:02.499 2013] [ 1742] rotating index 'user_core': success
[Tue Jan 15 18:56:02.506 2013] [ 1742] rotating index 'synonym_delta': success
[Tue Jan 15 18:56:02.512 2013] [ 1742] rotating index 'synonym_core': success
[Tue Jan 15 18:56:02.519 2013] [ 1742] rotating index 'bar_delta': success
[Tue Jan 15 18:56:02.525 2013] [ 1742] rotating index 'bar_core': success
[Tue Jan 15 18:56:02.525 2013] [ 1742] rotating finished
And this in searchd.query.log:
[Tue Jan 15 18:56:06.556 2013] 0.000 sec [ext/2/rel 8 (0,20)] [user_core]
[Tue Jan 15 18:56:06.566 2013] 0.001 sec [ext/2/rel 8 (0,20)] [user_core]
[Tue Jan 15 18:56:06.575 2013] 0.000 sec [ext/2/rel 8 (0,20)] [user_core]
I never had the issue of the search not returning updated results until I flushed the DB and restarted the server. None of the code had been change during that period. Any insight as to what could be the issue would be greatly appreciated. Also if you need more specifics let me know and I can post more. I am reluctant to post too much and overwhelm people from even reading. So let me know what is helpful to have to help better understand my issue.
**What is even weirder is I am not running into this issue with any of the other models, like venues. Which is updated and displayed through the search after it is saved to the DB...
----------------------------Update-----------------------------------
So I ran the rails console, and if I run
User.search
I get 10 results, ending with the last row that was added BEFORE running ts:rebuild. But when I run:
User.all
I get back 11 results, which includes all the rows in the database. Regardless of the last time ts:rebuild / index / configure was run...
Thanks
Alan