I wrote a simple java program to create a lucene index, but I get an error with the syntax.
My code:
static final String INDEX_DIRECTORY = "/home/yuqing/Desktop/index";
Directory index = FSDirectory.open(new File(INDEX_DIRECTORY));
I get the following error,
open (java.nio.file.path) in FSDirectory cannot be applied to java.io.file
See Question&Answers more detail:os