I'm trying to do a search on recently created posts and this appears
not to work when I have set_property :delta => true (it also has
indexes :text) on my post model. I do the following:
rake ts:in
script/console
>> Post.search("foobar")
=> []
>> Post.create(:text => "foobar")
=> <Post object>
>> Post.search("foobar")
=> []
Why does the second search return nothing? I thought delta-indexing
was supposed to pick up that kind of stuff?
What's even stranger is that when I exit out of script/console and
then run rake ts:in, the post is shown in the search results:
rake ts:in
script/console
>> Post.search("foobar")
=> [<post object>]
=> Post.find_by_text("foobar").destroy
=> []
And then when i go and delete it, the post is no longer shown in the
results! This is how delta indexing SHOULD work in my mind, but why is
not working for when I CREATE a post?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Thinking Sphinx" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/thinking-sphinx?hl=en
-~----------~----~----~----~------~----~------~--~---