[Xapian-discuss] Re: get_docid over multi-database search

Andrey alpha04 at netvigator.com
Thu Nov 22 00:43:29 GMT 2007


Very Nice, thanks

did_raw = (did_merged - 1) / number_of_databases + 1

offset = did_merged % number_of_databases

Cheers
Andrey




"Olly Betts" <olly at survex.com> wrote in message 
news:20071122001120.GJ3839 at survex.com...
> On Wed, Nov 21, 2007 at 01:44:11PM -0800, Andrey wrote:
>> say I have 2 databases, DB1 and DB2
>>
>> after i preformed a search over these 2 DBs, i have 1 result and I want 
>> to
>> delete this resulting doc, how do i identify which database (DB1 / DB2) 
>> this
>> document resides? and how to get its docid which is needed during the 
>> delete
>> process
>
>
> http://article.gmane.org/gmane.comp.search.xapian.general/1375
>
>> (delete process must over single writeableDatabase,right?)
>
> Yes, WritableDatabase doesn't currently allow multiple subdatabases.
>
> Cheers,
>    Olly
> 






More information about the Xapian-discuss mailing list