import sys, os
import lucene
from java.io import File
from org.apache.lucene.analysis.standard import StandardAnalyzer
from org.apache.lucene.index import DirectoryReader
from org.apache.lucene.queryparser.classic import QueryParser
from org.apache.lucene.document import Document, Field
from org.apache.lucene.index import IndexWriter, IndexWriterConfig
from org.apache.lucene.store import SimpleFSDirectory
from org.apache.lucene.util import Version
def index(start, no, dom):
lucene.initVM()
# join base dir and index dir
path = raw_input("Path for index: ")
index_path = File(path)
directory = SimpleFSDirectory(index_path) # the index
Я держу имея ошибки с SimpleFSDirectory, даже когда я попробовал другие вещи, как каталог = SimpleFSDirectory (File (os.path.abspath ("пути")))SimpleFSDirectory не работает в питона Lucene
InvalidArgsError : ('не инициализации', (,))