lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erick Erickson <>
Subject Re: index writer in searchComponent
Date Sun, 01 Jul 2012 00:13:53 GMT
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....


On Thu, Jun 28, 2012 at 4:02 PM, Peyman Faratin <> 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

View raw message