Li, I highly doubt any benefit would arise from pooling FSDirectory. At most one might cache an instance of FSDirectory for a long running process where IndexWriter's and IndexReader's are frequently opened and closed.
-----Original Message----- From: Li Bing [mailto:[email protected]] Sent: Friday, August 14, 2009 10:23 AM To: [email protected] Subject: Manage Lucene Resources Hi, all, I am trying to use Lucene to save all of my data instead of traditional DBMS, such as MySQL. I think I need to manage the resources in Lucene, such as FSDirectory, IndexWriter or IndexReader. I notice that IndexWriter and IndexReader are created by FSDirectory. So I decide to have a pool to reuse FSDirectory. That means the total count of FSDirectories is limited. Is it necessary? Does Luence itself consider manage the resources? Thanks, LB
