Hallo zusammen,
ich möchte den index den Lucene erstellt nicht im RAM sondern auf der Festplatte haben.
In den API Docs steht hierzu der hinweis:
Ich bekomme aber von Eclipse den Hinweis:
"The method open(Path) in the type FSDirectory is not applicable for the arguments (String)"
Wie mache ich nun "Path" oder was muss hier machen ?
Besten Dank
xrax
ich möchte den index den Lucene erstellt nicht im RAM sondern auf der Festplatte haben.
In den API Docs steht hierzu der hinweis:
Code:
Analyzer analyzer = new StandardAnalyzer();
// Store the index in memory:
Directory directory = new RAMDirectory();
// To store an index on disk, use this instead:
//Directory directory = FSDirectory.open("/tmp/testindex");
Ich bekomme aber von Eclipse den Hinweis:
"The method open(Path) in the type FSDirectory is not applicable for the arguments (String)"
Wie mache ich nun "Path" oder was muss hier machen ?
Besten Dank
xrax