That worked perfectly. Thank you very much.
On Apr 20, 7:02 pm, James Healy <[email protected]> wrote:
> tsmango wrote:
> > I'm having an issue where if an object is deleted but still exists in
> > the search index (it hasn't been rebuilt yet), a search that would
> > reveal that record now breaks because it's giving me back a nil object
> > along with my collection of actually existing objects.
>
> > I had this problem once in Ultrasphinx and there was a configuration
> > option to have it simply ignore missing records (existing in the
> > index, missing in the database) when it came upon them (so they
> > weren't returned). Does Thinking Sphinx have something similar?
>
> In theory TS will mark records that are deleted and won't return them in
> searches. In reality, for reasons no one has managed to track down yet
> this doesn't always happen.
>
> To remove the nil results, add the :retry_stale option to your searches.
> It can be set to true, false, or an int. This will tell TS to remove any
> nil results, mark the relevant record as deleted in the index, and
> perform a new query to fill in the gap(s).
>
> People.search("james", :retry_stale => true)
>
> I've been meaning to add a global TS config option that enables this by
> default for some time, but haven't got around to it yet.
>
> -- James Healy <jimmy-at-deefa-dot-com> Tue, 21 Apr 2009 08:56:46 +1000
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---