Hi Graham

The best way around this problem is that whenever you create a new  
index (either by adding define_index to a new model, or enabling delta  
indexing on a model) is to stop Sphinx, then re-index, then restart.

If indexer uses --rotate while Sphinx is running, it assumes all  
indexes defined in the config file (which is regenerated unless  
otherwise requested) already exist - and so it creates the .new  
versions before attempting to replace existing ones, and doesn't  
handle situations where there are no existing files.

If anyone wants to submit a patch that makes TS print a warning when  
running index when new indexes have been defined and Sphinx is  
running, be my guest ;)

Cheers

-- 
Pat

On 10/12/2008, at 2:58 PM, Graham Glass wrote:

> Hi everyone,
>
> No problem, I figured it out. Apparently I needed to execute indexer  
> one time without --rotate first.
>
> Personally, I'd change the behavior of indexer to ignore --rotate  
> the first time, or at least just issue a warning message.
>
> Cheers,
> Graham
>
> On Tue, Dec 9, 2008 at 11:46 PM, Graham Glass  
> <[email protected]> wrote:
>
> Hi everyone,
>
> I set my path = /root/sphinx/material_core in my sphinx.conf file but
> when I run the indexer it generates files with names
> material_core.new.spa, material_core.new.spd, etc. instead of
> material_core.spa, material_core.spd, etc.
>
> The extra ".new" in the file names is causing the searchd and other
> utilities to fail. I'm using Sphinx 0.9.8.1.
>
> Any ideas why the extra ".new" in the generated file names is being
> added?
>
> Cheers,
> Graham
>
>
>
> >


--~--~---------~--~----~------------~-------~--~----~
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