lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Max Bridgewater <>
Subject Load Resource from within Solr Plugin
Date Tue, 29 Mar 2016 21:14:37 GMT

I am facing the exact issue described here:

Basically I'm writing a solr plugin by extending SearchComponent class. My
new class is part of a.jar archive. Also my class depends on a jar b.jar. I
placed both jars in my own folder and declared in it solrconfig.xml with:

<lib dir="/home/bridge/Workspaces/search-webapp/target/WEB-INF/lib/"
regex=".*\.jar" />

I also declared my new component in solrconfig.xml. The component is
invoked correctly up to a point where a class ClassFromB from b.jar
attempts to load a classpath resource personal-words.txt from classpath.

The piece of code in class ClassFromB looks like this:


Unfortunately, this returns an empty list. Any recommendation?



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message