Hi,Michael McCandless Glad to know that you contributed the new optimize method to DocumentsWriter. i am a new one to lucene. However i think the class DocumentsWriter is not well designed. The first coming out question is 1: Why not extract the code of ThreadState management to a new internal class such as ThreadStatePool. 2: Why not extract the hash method to something like LuceneHashMap At present, there are lots of threadstate management code occured everywhere in the DocumentsWriter. Make code easier to understand is a good way to attract more people to involed in. leon
--------------------------------- @yahoo.cn 新域名、无限量,快来抢注!