Re: Reading files in default Conf dir

2014-09-10 Thread Ramana OpenSource
Thank you for the inputs Jorge. Now i am getting the ResourceLoader using SolrCore API. Before: return new HashSet(new SolrResourceLoader(null). getLines("stopwords.txt")); After: return new HashSet(core.getResourceLoader().getLines( "stopwords.txt")); I am able to load the resource successfull

Re: Reading files in default Conf dir

2014-09-10 Thread Jorge Luis Betancourt Gonzalez
What are you developing a custom search component? update processor? a different class for one of the zillion moving parts of Solr? If you have access to a SolrCore instance you could use it to get access of, essentially using the SolrCore instance specific to the current core will cause the l

Reading files in default Conf dir

2014-09-09 Thread Ramana OpenSource
Hi, I am trying to load one of the file in conf directory in SOLR, using below code. return new HashSet(new SolrResourceLoader(null).getLines("stopwords.txt")); The "stopwords.txt" file is available in the location "solr\example\solr\collection1\conf". When i debugged the SolrResourceLoader API