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 manjunatha V <ma...@gmail.com> on 2022/12/29 22:47:25 UTC

Lucene index FileAlreadyExistsException

Hi Lucene users,

I am a new bee to lucene.  Executing first out of box demo application
Index.java with following command line parameters.
-index C:\\Users\\Manju\\eclipse-workspace\\Lucene\\Index_Lucene\\560016
-docs C:\\Users\\Manju\\eclipse-workspace\\Lucene\\sales\\Sales.csv
 -knn_dict
C:\\Users\\Manju\\eclipse-workspace\\Lucene\\sales_update\\sales_update.fst
-update

My expectation is to use the existing index files.

getting below exception.

Indexing to directory
'C:\\Users\\Manju\\eclipse-workspace\\Lucene\\Index_Lucene\\560016'...

caught a class java.nio.file.FileAlreadyExistsException

with message:
C:\Users\Manju\eclipse-workspace\Lucene\Index_Lucene\560016\knn-dict.bin

  Kindly guide me on the changes required.

Thanks,
Manjunatha V