Lots of the index modification (all of it?) has been removed in 4.0 from IndexReaders...
It seems like you could always get the directory and open a SolrIndexWriter wherever you wanted, but I'm not sure it's a good idea, are there other processes that will be writing to the index at the same time? What's the purpose here anyway? There might be a better approach.... Best Erick On Thu, Jun 28, 2012 at 4:02 PM, Peyman Faratin <pey...@robustlinks.com> wrote: > Hi > > Is it possible to add a new document to the index in a custom SearchComponent > (that also implements a SolrCoreAware)? I can get a reference to the > indexReader via the ResponseBuilder parameter of the process() method using > > rb.req.getSearcher().getReader() > > But is it possible to actually add a new document to the index _after_ > searching the index? I.e accessing the indexWriter? > > thank you > > Peyman