Hi Brian,

You can implement the SolrCoreAware interface which will give you access to
the SolrCore object through the SolrCoreAware#inform method you will need to
implement. It is called after the init method.

On Tue, Aug 26, 2008 at 7:06 PM, Brian Whitman <[EMAIL PROTECTED]>wrote:

> 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?
>
>
>
>


-- 
Regards,
Shalin Shekhar Mangar.

Reply via email to