[Xapian-discuss] Is there a better way to do a distributed search server with xapian?

hightman hightman at zuaa.zju.edu.cn
Wed Sep 15 15:32:38 BST 2010


Oh, great!

Sorry for my wrong and stupid undersanding.


在 2010-9-14,下午9:46, Richard Boulton 写道:

> On 14 September 2010 14:26, hightman <hightman at zuaa.zju.edu.cn> wrote:
>> In fact,  Xapian read the data(termlist, postlist ...) from each database in a linear mode
>> and then calculate the matched result.  So when I have remote databases too many,
>> this implemention will be terrible and ineffective, because it cann't really search on
>> these machines simultaneously.
> 
> If you perform a search across multiple machines using the remote
> database protocol, Xapian will perform the search in parallel across
> those machines.  It uses a two-pass protocol: first, the query is sent
> to all the sub-machines, then the sub-machines return statistics for
> the frequencies of the query terms on those machines, then the global
> statistics are sent to all the sub-machines, and finally the top
> results returned from each machine are returned.
> 
> -- 
> Richard




More information about the Xapian-discuss mailing list