I am a Lucene.net novice and trying to adapt the search code from here which essentially creates a new Analyzer
, IndexSearcher
and IndexWriter
objects in every method and only the FSDirectory object is being reused.
Question: Is there a recommended best practice here for reusing these objects?
Previous results for Lucene.Net optimization are from years ago, and from personal experience the Lucene.Net library has changed: downloading examples and compiling them with 3.0.3 does not work without changing the code.