[Xapian-discuss] Search results from which database?

Jim jim at fayettedigital.com
Sun Jan 11 00:10:00 GMT 2009


Olly Betts wrote:
> On Sat, Jan 10, 2009 at 03:43:37AM -0500, NM wrote:
>   
>> I'm doing searches with multiple databases, and when I get the
>> results back, I need to know which database each result came
>> from.  I've been scanning the docs but haven't found how to 
>> get that info.
>>     
>
> I don't think it's explicitly documented.
>
> You're not the first to ask, but it's not an easy thing to search for in
> the list archives (took me several iterations, despite knowing it was
> there), so I've written it up as an FAQ entry:
>
> http://trac.xapian.org/wiki/FAQ/MultiDatabaseDocumentID
>
>   
I took the easy way out and included the name of the database as a field 
in the database.  That's obviously going to have a slight impact on the 
performance, but it was simple.

Jim.



More information about the Xapian-discuss mailing list