Reputation: 54521
I've written my own custom Solr search request handler. It's a single Java source file defining a single class. How do I compile the request handler and introduce it to my instance of Solr? I guess I'm supposed to create a JAR file out of the java source file and put that JAR somewhere so that Solr would be aware of the class. If that is indeed what I have to do, then how do I generate a JAR file out of a single Java source file without compiling the whole core of Solr? And after having the request handler JAR, where do I put it?
Upvotes: 3
Views: 1142
Reputation: 7871
You can have a look at this link to create a jar.
Once the jar is created you need to put the jar in the lib
directory in the instanceDir
of your SolrCore. For more details have a look here.
You need to add the following in your solrconfig.xml
-
<lib dir="../../../lib/yourjarname"/>
Upvotes: 2