I want to be able to store non-solr data in solr's data directory
(like solr/solr/data/stored alongside solr/solr/data/index)
The java class that sets up this data is instantiated from a
RequestHandlerBase class like:
public class StoreDataHandler extends RequestHandlerBase {
StoredData storedData;
@Override
public void init(NamedList args)
{
super.init(args);
String dataDirectory = ????
storedData = new StoredData(dataDirectory);
}
@Override
public void handleRequestBody(SolrQueryRequest req,
SolrQueryResponse rsp) throws Exception
...
req.getCore() etc will eventually get me solr's data directory
location, but how do I get it in the init method? I want to init the
data store once on solr launch, not on every call.
What do I replace those ???? above with?