[Xapian-discuss] database error

Frank J Bruzzaniti frank.bruzzaniti at gmail.com
Wed Feb 18 01:14:57 GMT 2009


Frank J Bruzzaniti wrote:
>
>
> Olly Betts wrote:
>> Please don't top-post.
>>
>> On Wed, Feb 18, 2009 at 10:46:53AM +1030, Frank J Bruzzaniti wrote:
>>> I noticed that the default database is only unavailable during a merge.
>>> E.g. If I do xapian-merge db1 db2 default
>>
>> ITYM xapian-compact.
>>
>>> Is this normal? How should I index/merge my collections without the 
>>> database being unavailable.
>>
>> Yes, that's normal.
>>
>> If you want to always have a database available, make default a "stub
>> database", create the new one under a new name, create a new stub
>> database file under a new name (e.g. "default.tmp") and renamed that
>> over the top of "default" for an atomic switchover (or despair at the
>> lack of POSIX semantics if using Microsoft Windows).
>>
>> Cheers,
>> Olly
>
> Would it be better to always run omindex against the same database:
> E.g. omindex --db default /files1
> omindex --db default /files2
>
> rather than creating 2 databases and merging them into 1?

Nevermind, I should didn't realise runing omindex against the same 
database twice would nuke the previous index results.
I just created a default.tmp from the merge of db1 & db2 that I mv to 
default like you said.

thanks again



More information about the Xapian-discuss mailing list