lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Markus Jelsma <markus.jel...@openindex.io>
Subject RE: Override Default Similarity and SolrCloud
Date Thu, 03 Mar 2016 14:17:13 GMT
Hi - config is stored in ZK, libs must be present on each node and are rsync there via provisioning.

Markus 
 
-----Original message-----
> From:Joshan Mahmud <joshan.mahmud@gmail.com>
> Sent: Thursday 3rd March 2016 15:02
> To: solr-user@lucene.apache.org
> Subject: Re: Override Default Similarity and SolrCloud
> 
> Thanks Markus - do you just SCP / copy them manually to your solr nodes and
> not through Zookeeper (if you use that)?
> 
> Josh
> 
> On Thu, Mar 3, 2016 at 1:59 PM, Markus Jelsma <markus.jelsma@openindex.io>
> wrote:
> 
> > We store them server/solr/lib/.
> >
> >
> > -----Original message-----
> > > From:Joshan Mahmud <joshan.mahmud@gmail.com>
> > > Sent: Thursday 3rd March 2016 14:54
> > > To: solr-user@lucene.apache.org
> > > Subject: Override Default Similarity and SolrCloud
> > >
> > > Hi group!
> > >
> > > I'm having an issue of deploying a custom jar in SolrCloud (v 5.3.0).
> > >
> > > I have a working local Solr environment (v 5.3.0 - NOT SolrCloud)
> > whereby I
> > > have:
> > >
> > >    - a jar containing one class CustomSimilarity which
> > >    extends org.apache.lucene.search.similarities.DefaultSimilarity
> > >
> > >    - the jar is placed in CORE\conf\lib
> > >
> > >    - my solrconfig.xml has:
> > >    <lib dir="./conf/lib" />
> > >
> > >    - my schema.xml has:
> > >    <similarity class="com.mycompany.CustomSimilarity" />
> > >
> > > This all works fine locally, but if I Zookeeper upconfig my conf folder
> > to
> > > a SolrCloud envrionment which contains my schema, solrconfig and
> > > lib\CustomSimilarity.jar and then reload my CORE then SolrCloud complains
> > > that it cannot find: "com.mycompany.CustomSimilarity".
> > >
> > > How can I get SOLR & Zookeeper to use my jar???
> > >
> > > Any help would be greatly appreciated!
> > >
> > > Thanks
> > > Josh
> > >
> >

Mime
View raw message