solrsolrcloudsolr8

SOLR - adding custom REST service


I am using SOLR 8.x. and I am trying to adding some custom functionality. Say like, triggering some server specific shell scripts. Adding custom code JARs to the lib folder and adding the jars in solrconfig.xml is not working.

Or how to set up new SOLR version in eclipse(most of the docs online are for older version where SOLR was still a .war)

Any pointers would be much appreciated.


Solution

  • I was able to achieve this by adding the custom jar(HTTPServlet based) to server/lib folder and by updating web.xml with servlet & servlet-mapping.