As it is now... I don't think so.  SolrCore is a static singleton
class -- without some serious reworking, i think there is only one
instance per jvm.

I think getting rid of the static singleton should go on the long term
TODO list, but that doesn't help you now.

Although it seems weird, just adding a "type" field makes it possible
to put things that seem like they need their own database into the
same index - you select the 'type' you want by adding "+type:mytype"
to your query


On 3/7/07, Venkatesh Seetharam <[EMAIL PROTECTED]> wrote:
Thanks Ryan for your inputs. If I'm not using Solr webapp but wrapping Solr
in plain Java, is there any way that I could get Solr to work with multiple
index partitions?

Venkatesh

On 3/7/07, Ryan McKinley <[EMAIL PROTECTED]> wrote:
>
> Solr looks at one index - If you want to look at multiple indexes, you
> need multiple solr instances running.  Check the wiki for how to set
> that up:
>
>   http://wiki.apache.org/solr/SolrJetty
>
> (the resin and tomcat pages have something similar)
>
>
>
> On 3/7/07, Venkatesh Seetharam <[EMAIL PROTECTED]> wrote:
> > Hello there,
> >
> > Howdy. I was wondering if there is a way to configure one Solr instance
> to
> > search multiple Index partitions? I read the wiki and found the entry in
> > SolrConfig.xml:
> >
> > <dataDir>/var/data/solr</dataDir>
> >
> > Can I have mutiple directories? Comma separated?
> >
> > Any help is greatly appreciated.
> >
> > --
> > Thanks,
> > Venkatesh
> >
> > "Perfection (in design) is achieved not when there is nothing more to
> add,
> > but rather when there is nothing more to take away."
> > - Antoine de Saint-Exupéry
> >
>

Reply via email to