You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Jyothsna Bavisetti <jy...@oracle.com> on 2020/04/14 05:52:20 UTC

need suggetion in replacing forcemerge(1) with alternative which consumes less space

HI Team,

  

1.We Upgraded Lucene 4.6 to 8+, After upgrading we are facing issue with Lucene Index Creation.

We are indexing in Multi-threading environment. When we create bulk indexes , Lucene Document is getting corrupted. (data is not getting updated correctly. Merging of different row data).

2. when we are trying to updateDocument method for single record. It is not reflecting in IndexReader until the count is 8.  Once the count exceeds, than records are visible for IndexReader. (creating 8 segment files.) is there any alternative for reducing these segment file creation.  

3. above two issues are resolved by forcemerge(1). But it is not feasible for our use case , because it takes 3X memory. We are creating indexes for huge data.

 

Please suggest some ideas alternate of forceMerge, dealing with indexwriter.commit for multithreading, committing  data while updating single record.

 

 

Thanks,

Jyothsna