lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <ysee...@gmail.com>
Subject Re: Lucene nrt
Date Tue, 21 Jul 2015 00:29:45 GMT
Yes, if you do a commit with waitSearcher=true (and it succeeds) then
any adds before that point will be visible.

-Yonik


On Mon, Jul 20, 2015 at 8:25 PM, Bhawna Asnani <bhawna.asnani@gmail.com> wrote:
> Hi,
> I am using solr to update a document and read it back immediately through
> search.
>
>
> I do softCommit my changes which claims to use lucene's indexReader using
> indexWritter which was used to write teh document.
> But there are times when Itheget a stale document back even with
> waitSearcher=true.
>
> Does lucene's nrt (i.e. DirectoryReader open(IndexWriter writer, boolean
> applyAllDeletes)) guarantee's that the changes made through the wirtter
> will be visible to reader immediately?
>
> Thanks.

---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message