rclabo commented on issue #720:
URL: https://github.com/apache/lucenenet/issues/720#issuecomment-1290498935

   @nikcio is pointing you in the right direction. The key aspect from that SO 
answer is this:
   
   >Use a 
[SearcherManager](https://lucene.apache.org/core/5_0_0/core/org/apache/lucene/search/SearcherManager.html)
 for searching and invoke 
[maybeRefresh()](https://lucene.apache.org/core/5_0_0/core/org/apache/lucene/search/ReferenceManager.html#maybeRefresh())
 periodically to see updated documents within a reasonable time frame
   
   And that assumes your `IndexReader` was created from 
`IndexWrite.GetReader()` rather then created independently.
   
   With those tips you should see much better performance.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to