abhishek0007 / duke

Automatically exported from code.google.com/p/duke
0 stars 0 forks source link

Try opening reader directly from the writer #31

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
One of the costliest operations we perform right now is IndexWriter.commit(), 
and in fact we introduced the whole troublesome batching concept specifically 
to be able to live with this limitation. It's possible to open a special reader 
from a writer to get "near real-time" searching, and we should try out whether 
this works better.

http://lucene.apache.org/java/3_3_0/api/core/org/apache/lucene/index/IndexReader
.html#open(org.apache.lucene.index.IndexWriter, boolean)

Original issue reported on code.google.com by lar...@gmail.com on 25 Aug 2011 at 7:30