Hi all: I want first erase the original index and then create an index for appending, I use the following python code using ports pyLucene.
def store(doc) store = PyLucene.FSDirectory.getDirectory("index", True) writer = PyLucene.IndexWriter(store, StandardAnalyzer, False ) # error occurs in this line! writer.addDocument(doc); writer.optimize() writer.close() if __name__ == '__main__': store(doc1) store(doc2) But I get the following errors: File "D:\work\contentstore\contentstore\backends\lucene\base.py", line 30, in store writer = PyLucene.IndexWriter(store, self.analyzer, False ) PyLucene.JavaError: java.io.FileNotFoundException: D:\work\contentstore\contentstore\backends\lucene\index\segments: The system cannot find the file specified. How to fix it? Appreciate your help! -- David