I currently don't have any tests in place to check against Sphinx. The
only test I'm really doing is to make sure ActiveRecord's `save`
method returns true. This is the first time I've ever noticed this
kind of behavior and it was observed through manual testing. I
actually forgot to go back and test if the delayed job was added. I
could go back and scour the logs I suppose.
My define_index looks like:
define_index do
indexes content
has zipcode(:id), :as => :zipcode_id
has "RADIANS(zipcodes.lat)", :as => :lat, :type => :float
has "RADIANS(zipcodes.lon)", :as => :lon, :type => :float
has expires_at
has created_at
has "CRC32(state)", :as => :state, :type => :integer
set_property :delta => :delayed
end
On May 12, 5:08 am, Pat Allan <[email protected]> wrote:
> This generally shouldn't happen, though it does crop up occasionally. How are
> you updating records to test this? Is a job being added? And what does your
> define_index block look like?
>
> --
> Pat
>
> On 12/05/2011, at 8:58 PM, Code Daemon wrote:
>
>
>
>
>
>
>
> > I am developing a site and for the first time, I noticed Sphinx did
> > not properly index a new entry. rake ts:dd was running, I restarted it
> > and it didn't help. To get the entry to show up on the site I had to
> > run rake ts:index.
>
> > Is it common for Sphinx to ever get confused? If so, what are some
> > things that can be done to workaround this?
>
> > --
> > 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
> > athttp://groups.google.com/group/thinking-sphinx?hl=en.
--
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.