lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jaga_india <jaga....@gmail.com>
Subject Multiple CFS files are generated in lucene 4.10.2
Date Mon, 29 Dec 2014 07:04:34 GMT
Hi

I am trying index around 612 record using lucene 4.10.2. It is creating lot
of CF files in index directory.
around 626 CFS file are created. It is taking more time to index.

ENV : java 8, window 7

<http://lucene.472066.n3.nabble.com/file/n4176336/index_files.jpg> 

Directory dir = FSDirectory.open(file);
                IndexWriterConfig config = new
IndexWriterConfig(Version.LUCENE_4_10_2, new ClassicAnalyzer());
                if(bufferSizeMB != 0 && bufferSizeMB != -1){
                    config.setRAMBufferSizeMB(bufferSizeMB);
                }  else {
                    config.setRAMBufferSizeMB(DEFAULT_RAM_BUFFER_SIZE_MB);
                }      
                config.setMaxBufferedDocs(1000);
                config.setMaxBufferedDeleteTerms(1000);
                config.setMergePolicy(new LogDocMergePolicy());
                IndexWriter iwriter = new IndexWriter(dir, config);
                iwriter.getConfig().setMaxBufferedDeleteTerms(1000);
                iwriter.getConfig().setMaxBufferedDocs(1000);
                iwriter.getConfig().setRAMBufferSizeMB(bufferSizeMB)


Thanks and Regards
jaga india



--
View this message in context: http://lucene.472066.n3.nabble.com/Multiple-CFS-files-are-generated-in-lucene-4-10-2-tp4176336.html
Sent from the Lucene - Java Developer mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message