Are these separate Lucene index files which can be updated and optimized individually?
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Tom Hill Sent: Thursday, August 23, 2007 2:23 PM To: solr-user@lucene.apache.org Subject: Re: How to realize index spaces Hi - On 8/23/07, Marc Bechler <[EMAIL PROTECTED]> wrote: > > I was wondering whether or not it is possible to realize different > index spaces with one solr instance. > > Example: imagine, you want to have 2 index spaces that coexist > independently (and wich can be identified, e.g., by a unique id). In > your query, you specify an id, and the query should be performed only > in the index space with the respective id. Moreover, it should be > possible to add/remove additional index spaces dynamically. Just add a field that tells which index space the document belongs to (belonging to multiple is OK). And then to query only that index space, add, for example &fq=space:product to your query URL. Assuming you named the field 'space', and wanted the 'product' space. There's a related example in the example solrconfig, look at <requestHandler name="partitioned" class="solr.DisMaxRequestHandler" > Tom