You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Shameema Umer <sh...@gmail.com> on 2012/06/21 06:45:37 UTC

solr plugin

I am going to write a n update handler solr plugin. the original
DirectUpdateHandler2 imports mport org.apache.lucene.index and
org.apache.lucene.search.
But to add the lucene jar files into the classpath, I am not able to
find them in my solr package 3.4.0. Should i download lucene
separately to get the jar files?


Thanks
Shameema

Re: solr plugin

Posted by Shameema Umer <sh...@gmail.com>.
thanks.

On Fri, Jun 22, 2012 at 6:12 PM, Erick Erickson <er...@gmail.com> wrote:
> You should be able to compile your new plugin and use the
> <lib> directive in solrconfig.xml to point to your new jar. Solr
> should have access to all the lucene jar files at that point.
>
> I usually build plugins after checking out all of the Solr source and
> doing an "ant dist" and pathing my IDE correctly. that way, the jar
> I produce doesn't have anything in it except my code and relies
> on Solr to resolve all the solr/lucene specific stuff...
>
> Best
> Erick
>
> On Thu, Jun 21, 2012 at 12:45 AM, Shameema Umer <sh...@gmail.com> wrote:
>> I am going to write a n update handler solr plugin. the original
>> DirectUpdateHandler2 imports mport org.apache.lucene.index and
>> org.apache.lucene.search.
>> But to add the lucene jar files into the classpath, I am not able to
>> find them in my solr package 3.4.0. Should i download lucene
>> separately to get the jar files?
>>
>>
>> Thanks
>> Shameema

Re: solr plugin

Posted by Erick Erickson <er...@gmail.com>.
You should be able to compile your new plugin and use the
<lib> directive in solrconfig.xml to point to your new jar. Solr
should have access to all the lucene jar files at that point.

I usually build plugins after checking out all of the Solr source and
doing an "ant dist" and pathing my IDE correctly. that way, the jar
I produce doesn't have anything in it except my code and relies
on Solr to resolve all the solr/lucene specific stuff...

Best
Erick

On Thu, Jun 21, 2012 at 12:45 AM, Shameema Umer <sh...@gmail.com> wrote:
> I am going to write a n update handler solr plugin. the original
> DirectUpdateHandler2 imports mport org.apache.lucene.index and
> org.apache.lucene.search.
> But to add the lucene jar files into the classpath, I am not able to
> find them in my solr package 3.4.0. Should i download lucene
> separately to get the jar files?
>
>
> Thanks
> Shameema