I'm interested in the answer as well. Here's what I inferred from the discussion (without probing into solr's source code):
1. there can be only one schema.xml in a "Solr Home" directory; 2. one Solr instance can only have one "Solr Home" directory. Is that the correct understanding? I really hope #2 is incorrect, since it seems it's resource efficient to support more than one schemas (indexes), and we can simply use http://hostname:port/<solr-home-name>/select etc. to get to different indexes. thanks, -Hui On 8/23/07, Lance Norskog <[EMAIL PROTECTED]> wrote: > > 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 > > -- Regards, -Hui