Skip to content

Apache Lucene open-source search software

modify to build syn index in compound format

Erik Hatcherbd07d7acc473
diff --git a/sandbox/contributions/WordNet/src/java/org/apache/lucene/wordnet/Syns2Index.java b/sandbox/contributions/WordNet/src/java/org/apache/lucene/wordnet/Syns2Index.java
index 5d66fa1ebc4..8b86745da77 100644
--- a/sandbox/contributions/WordNet/src/java/org/apache/lucene/wordnet/Syns2Index.java
+++ b/sandbox/contributions/WordNet/src/java/org/apache/lucene/wordnet/Syns2Index.java
@@ -201,6 +201,7 @@ public class Syns2Index
// override the specific index if it already exists
IndexWriter writer = new IndexWriter(indexDir, ana, true);
+ writer.setUseCompoundFile(true);
Iterator i1 = word2Nums.keySet().iterator();
while (i1.hasNext()) // for each word
{