Hi Ryan

One other thing to keep in mind - Sphinx takes a few seconds to catch  
up between delta indexing and results being available. So when you're  
running search after create, allow for that in testing.

That said, you should probably be seeing the output of the delta index  
(although in the log instead of console? Can't remember, and it's  
late), so Solomon's suggestion sounds like a good place to start.

Cheers

-- 
Pat

On 03/02/2009, at 8:13 PM, Solomon White wrote:

> Ryan--
>
> What is your environment?  This sounds exactly like what I was  
> seeing, and my problem turned out to be that the command to rotate  
> the indexes was not in the PATH whilst running under Phusion  
> Passenger.
>
>
> Hope this helps,
>
> Solomon
>
> On Tue, Feb 3, 2009 at 2:52 AM, Ryan Bigg <[email protected]>  
> wrote:
>
> 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to