diff options
author | Andreas Baumann <abaumann@yahoo.com> | 2011-05-18 15:32:58 +0200 |
---|---|---|
committer | Andreas Baumann <abaumann@yahoo.com> | 2011-05-18 15:32:58 +0200 |
commit | afdcecdb33713c67810dc023a8b8669e4265b4ee (patch) | |
tree | 870359b7da689cc4a9a584de57ddf79854740fad /src | |
parent | d75b2be69a047ff98e599f02262731823ebb3f37 (diff) | |
download | LuceneAnalyzer-afdcecdb33713c67810dc023a8b8669e4265b4ee.tar.gz LuceneAnalyzer-afdcecdb33713c67810dc023a8b8669e4265b4ee.tar.bz2 |
switched to version 0.0.4, for Lucene 3.1
Diffstat (limited to 'src')
-rw-r--r-- | src/main/java/org/dyndns/andreasbaumann/LuceneAnalyzer.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/main/java/org/dyndns/andreasbaumann/LuceneAnalyzer.java b/src/main/java/org/dyndns/andreasbaumann/LuceneAnalyzer.java index 206ceb8..6649a9f 100644 --- a/src/main/java/org/dyndns/andreasbaumann/LuceneAnalyzer.java +++ b/src/main/java/org/dyndns/andreasbaumann/LuceneAnalyzer.java @@ -33,6 +33,7 @@ import jargs.gnu.CmdLineParser.OptionException; import org.apache.lucene.store.Directory; import org.apache.lucene.store.FSDirectory; +import org.apache.lucene.store.SimpleFSDirectory; import org.apache.lucene.index.IndexReader; import org.apache.lucene.index.IndexReader.FieldOption; import org.apache.lucene.index.TermEnum; @@ -56,7 +57,7 @@ import org.apache.lucene.document.Field; public class LuceneAnalyzer { - private static final String versionString = "0.0.3"; + private static final String versionString = "0.0.4"; private static void printGlobalInfo( IndexReader indexReader ) throws IOException { @@ -271,7 +272,7 @@ public class LuceneAnalyzer System.exit( 1 ); } - Directory luceneDirectory = FSDirectory.getDirectory( indexDir, false ); + Directory luceneDirectory = new SimpleFSDirectory( indexDir ); IndexReader indexReader = IndexReader.open( luceneDirectory ); printGlobalInfo( indexReader ); |