lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From khanh-lam....@bnf.fr
Subject Generate Lucene segments_N file
Date Tue, 09 Feb 2016 14:50:29 GMT
Hello,

First, I don't know if it's the right mailing list to ask for your help, 
if no please accept my apologies for the inconvenience.

While moving Lucene (5.3) index files from a server to an other, I forgot 
to move the segments_N file (because I use the pattern *.*) 
Unfortunately I've erased the original folder, and I only have these files 
in my directory now : 

_1rpt.fdt
_1rpt.fdx
_1rpt.fnm
_1rpt.nvd
_1rpt.nvm
_1rpt.si
_1rpt_Lucene50_0.doc
_1rpt_Lucene50_0.dvd
_1rpt_Lucene50_0.dvm
_1rpt_Lucene50_0.pos
_1rpt_Lucene50_0.tim
_1rpt_Lucene50_0.tip
write.lock

I am missing the segments_42u file, and without it I cannot even do an 
org.apache.lucene.index.CheckIndex : 

Exception in thread "main" org.apache.lucene.index.IndexNotFoundException: 
no segments* file found in MMapDirectory@/solr-5.3.1
/nodes/node1/core/data/index lockFactory=org.apache.lucene.store.
NativeFSLockFactory@119d7047: files: [write.lock, _1rpt.fdt, _1rpt.fdx, 
_1rpt.fnm, _1rpt.nvd, _1rpt.nvm, _1rpt.si, _1rpt_Lucene50_0.doc, 
_1rpt_Lucene50_0.dvd, _1rpt_Lucene50_0.dvm, _1rpt_Lucene50_0.pos, 
_1rpt_Lucene50_0.tim, _1rpt_Lucene50_0.tip]
at org.apache.lucene.index.CheckIndex.checkIndex(CheckIndex.java:483)
at org.apache.lucene.index.CheckIndex.doMain(CheckIndex.java:2354)
at org.apache.lucene.index.CheckIndex.main(CheckIndex.java:2237)

The index is pretty huge (> 800GB) and it will take weeks to rebuild it.
Is there a way to generate this missing segment info file ?

Thanks a lot for your help.


Khanh-Lam Mai
khanh-lam.mai@bnf.fr
Exposition  De Rouge et de Noir. Les vases grecs de la collection de Luynes  - jusqu'au 1
er  mars 2016 - BnF - Richelieu Avant d'imprimer, pensez  l'environnement. 

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message