Yes, you can assume this since that's the only
way new content will be searchable, as you've
discovered....

Best
Erick

On Wed, Apr 13, 2011 at 4:42 AM, Reeza Edah Tally <re...@nova-hub.com>wrote:

> Thanks,
>
> I changed my searching to be triggered on a newSearcher event instead and
> use the new searcher to retrieve the documents. This works.
>
> Btw can I assume that a new searcher will always be created soon after a
> commit?
>
> Regards,
> Reeza
>
> -----Original Message-----
> From: Otis Gospodnetic [mailto:otis_gospodne...@yahoo.com]
> Sent: Wednesday, April 13, 2011 3:54 AM
> To: solr-user@lucene.apache.org
> Subject: Re: Searching during postcommit
>
> If I follow things correctly, I think you should be seeing new documents
> only
> after the commit is done and the new index searcher is open and available
> for
> search.  If you are searching before the new searcher is available, you are
> probably still hitting the old searcher.
>
> Otis
> ----
> Sematext :: http://sematext.com/ :: Solr - Lucene - Nutch
> Lucene ecosystem search :: http://search-lucene.com/
>
>
>
> ----- Original Message ----
> > From: Reeza Edah Tally <re...@nova-hub.com>
> > To: solr-user@lucene.apache.org
> > Sent: Tue, April 12, 2011 9:25:59 AM
> > Subject: Searching during postcommit
> >
> > Hi,
> >
> >
> >
> > I have been trying to perform a search using a  CommonsHttpSolrServer
> when
> my
> > postCommit event listener is called.
> >
> > I  am not able to find the documents just commited; the "post" in
> postCommit
> > caused me to assume that I would; it seems that the commit only  takes
> effect
> > when all postCommit have returned.
> >
> >
> >
> > Am I missing  something or is there another way I can do this?
> >
> >
> >
> > Thanks,
> >
> > Reeza
> >
> >
>
>
>

Reply via email to