Too many open files Error on Lucene

前端 未结 3 1221
失恋的感觉
失恋的感觉 2021-02-10 17:15

The project I\'m working on is indexing a certain number of data (with long texts) and comparing them with list of words per interval (about 15 to 30 minutes).

After som

3条回答
  •  广开言路
    2021-02-10 17:49

    Use compound index to reduce file count. When this flag is set, lucene will write a segment as single .cfs file instead of multiple files. This will reduce the number of files significantly.

    IndexWriter.setUseCompoundFile(true) 
    

提交回复
热议问题