lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From andynuss <>
Subject RE: search hits not returned until I stop and restart application
Date Mon, 21 Jun 2010 17:28:42 GMT

"So you gotta call commit() or close().  Once you've done that, you can
reduce the (expensive) cost of opening a new IndexReader by calling
reopen(): "


I tried this, and I must have done something wrong.

After my document set was ingested, I called a function which (1) called the
IndexWriter singleton commit() function, (2) then called the IndexReader
singleton reopen() function (no arguments).  (My IndexReader is read only.)  
Still didn't find hits in that book.  Then I tried (3) creating a new
IndexSearcher on top of this IndexReader and that also didn't help.

Wonder what I could be doing wrong.

View this message in context:
Sent from the Lucene - Java Users mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message