mirror of https://github.com/apache/lucene.git
modify to build syn index in compound format
git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@150947 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
bd0af19e91
commit
bd07d7acc4
|
@ -201,6 +201,7 @@ public class Syns2Index
|
||||||
|
|
||||||
// override the specific index if it already exists
|
// override the specific index if it already exists
|
||||||
IndexWriter writer = new IndexWriter(indexDir, ana, true);
|
IndexWriter writer = new IndexWriter(indexDir, ana, true);
|
||||||
|
writer.setUseCompoundFile(true);
|
||||||
Iterator i1 = word2Nums.keySet().iterator();
|
Iterator i1 = word2Nums.keySet().iterator();
|
||||||
while (i1.hasNext()) // for each word
|
while (i1.hasNext()) // for each word
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue