[Xapian-discuss] database error
Frank J Bruzzaniti
frank.bruzzaniti at gmail.com
Wed Feb 18 00:28:18 GMT 2009
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?
More information about the Xapian-discuss
mailing list