0

I was creating a lucene index when my indexing program crashed. The indexer had processed about 3M documents before crashing, producing a 14GB file. When I opened the index in Luke (with force unlock), the whole index was gone!. poof.

The opened index had 0 documents and its size was reduced to 1kb. Did anyone experience this, or can offer an explanation

(Using Lucene.Net 2.9)

Midhat
  • 17,454
  • 22
  • 87
  • 114

1 Answers1

2

Most probably, your indexing code never called commit() before crashing. If you don't want to lose all your changes, you should call commit() every X added documents.

Martin Blech
  • 13,135
  • 6
  • 31
  • 35