I am unclear on how does searching work while indexing. lets say I already
have a document indexed (version 1), and I updated the document, so I will
index it again (version 2), what happens when the user is searching while
indexing version 2? Will the user get results from version 1?
I am unclear on how does searching work while indexing. lets say I already have a document indexed (version 1), and I updated the document, so I will index it again (version 2), what happens when the user is searching while indexing version 2? Will the user get results from version 1?
I am unclear on how does searching work while indexing. lets say I already
have a document indexed (version 1), and I updated the document, so I will
index it again (version 2), what happens when the user is searching while
indexing version 2? Will the user get results from version 1?
Well, good grief, the answer to the poster's original question is PERHAPS
(not yes!). It depends on the timing between the search request and the
(asynchronous) indexing. There is a short (but finite) amount of time after
the update request that a search will still return the previous version. At
some point in time (this is the eventually part) that window will close and
the updated, just indexed document will be returned.
Also, if the search request happened before the indexing and the client is
pulling results back using scrolling or scanning then he definitely will
not see the update, I think.
I am unclear on how does searching work while indexing. lets say I
already have a document indexed (version 1), and I updated the document, so
I will index it again (version 2), what happens when the user is searching
while indexing version 2? Will the user get results from version 1?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.