You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by sol myr <so...@yahoo.com> on 2011/10/03 19:21:51 UTC

Re: Lucene Grid question

Thank you very much (sorry for the delayed reply).



________________________________
From: Chris Hostetter <ho...@fucit.org>
To: solr-users <so...@lucene.apache.org>; sol myr <so...@yahoo.com>
Sent: Wednesday, September 21, 2011 4:15 AM
Subject: Re: Lucene Grid question


: E.g. say I have a chain of book-stores, in different countries, and I'm aiming for the following:
: - Each country has its own index file, on its own machine (e.g. books from Japan are indexed on machine "japan1")
: - Most users search only within their own country (e.g. search only the "japan1" index)
: - But sometimes, they might ask to search the entire chain (all countries), meaning some sort of "map/reduce" (=collect data from all countries).

what you're describing is one possible usecase of "Distributed Search"

http://wiki.apache.org/solr/DistributedSearch

as long as each of the individual "country" indexes have schemas that 
overlap (ie: share some common fields) and have the same uniqueKey field, 
with an id space that does *not* overlap between countries (ie: document 
"1" can only be in one index, not in any others) then you can do a 
distributed query that is distributed out to all of hte individual 
indexes, and then merged together to generate aggregate results.


-Hoss