mirror of https://github.com/apache/lucene.git
- Removed FIXMEs
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@157224 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
0d8a41342e
commit
1a3ce57455
|
@ -27,14 +27,12 @@ class IndexTest {
|
|||
public static void main(String[] args) {
|
||||
try {
|
||||
Date start = new Date();
|
||||
// FIXME: OG: what's with this hard-coded dirs??
|
||||
IndexWriter writer = new IndexWriter("F:\\test", new SimpleAnalyzer(),
|
||||
true);
|
||||
IndexWriter writer = new IndexWriter(File.createTempFile("luceneTest", "idx"),
|
||||
new SimpleAnalyzer(), true);
|
||||
|
||||
writer.setMergeFactor(20);
|
||||
|
||||
// FIXME: OG: what's with this hard-coded dirs??
|
||||
indexDocs(writer, new File("F:\\recipes"));
|
||||
indexDocs(writer, new File("/tmp"));
|
||||
|
||||
writer.optimize();
|
||||
writer.close();
|
||||
|
|
Loading…
Reference in New Issue