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

Reply via email to