Re: Load Resource from within Solr Plugin

2016-03-31 Thread Max Bridgewater
Hi Folks, Thanks for all the great suggestions. i will try and see which one works best. @Hoss: The WEB-INF folder is just in my dev environment. I have a localo Solr instance and I points it to the target/WEB-INF. Simple convenient setup for development purposes. Much appreciated. Max. On Wed,

Re: Load Resource from within Solr Plugin

2016-03-30 Thread Rajesh Hazari
Max, Have you looked in External file field which is reload on every hard commit, only disadvantage of this is the file (personal-words.txt) has to be placed in all data folders in each solr core, for which we have a bash script to do this job. https://cwiki.apache.org/confluence/display/solr/Work

Re: Load Resource from within Solr Plugin

2016-03-30 Thread Chris Hostetter
: : 1) as a general rule, if you have a delcaration which includes "WEB-INF" you are probably doing something wrong. Maybe not in this case -- maybe "search-webapp/target" is a completley distinct java application and you are just re-using it's jars. But 9 times out of 10, when people have

Re: Load Resource from within Solr Plugin

2016-03-29 Thread Ahmet Arslan
Hi Max, Why not implement org.apache.lucene.analysis.util.ResourceLoaderAware? Existing implementation all load/read text files. Ahmet On Wednesday, March 30, 2016 12:14 AM, Max Bridgewater wrote: HI, I am facing the exact issue described here: http://stackoverflow.com/questions/25623797

Load Resource from within Solr Plugin

2016-03-29 Thread Max Bridgewater
HI, I am facing the exact issue described here: http://stackoverflow.com/questions/25623797/solr-plugin-classloader. 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 fo