[Xapian-discuss] Separting results from multiple databases

Marco Tabini marcot at tabini.ca
Mon Jun 13 03:55:27 BST 2005


Hello,

I'm playing around with Xapian and I'm wondering whether it's possible to
retrieve the estimated number of documents returned by each database that is
part of a query.

For example--suppose that I have two databases, one that stores news items
and another one that stores article. When a search is performed, by default
I want to return a set that contains matches from both dbs. However, I also
want to give the user an idea of how many of the matches come from each
database.

1. Is this possible without running the query again against either db?
2. As a side question, is there a significant performance hit in combining
multiple databases as opposed to using a single db? In that case, how could
I separate the different types of data to achieve the result I described
above?

Thanks much!


Marco





More information about the Xapian-discuss mailing list