r110870 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r110869‎ | r110870 | r110871 >
Date:20:39, 7 February 2012
Author:oren
Status:ok (Comments)
Tags:
Comment:
changes IndexWriter xtor to conform to Lucene 3.0 API
Modified paths:
  • /trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/ranks/Links.java (modified) (history)

Diff [purge]

Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/ranks/Links.java
@@ -22,6 +22,7 @@
2323 import org.apache.lucene.index.CorruptIndexException;
2424 import org.apache.lucene.index.IndexReader;
2525 import org.apache.lucene.index.IndexWriter;
 26+import org.apache.lucene.index.IndexWriter.MaxFieldLength;
2627 import org.apache.lucene.index.Term;
2728 import org.apache.lucene.index.TermDocs;
2829 import org.apache.lucene.index.TermEnum;
@@ -188,8 +189,8 @@
189190 */
190191 public static Links createNewInMemory(IndexId iid) throws IOException{
191192 iid = iid.getLinks();
192 - log.info("Making index in memory");
193 - IndexWriter writer = new IndexWriter(new RAMDirectory(),new SimpleAnalyzer(),true);
 193+ log.info("Making index in memory");
 194+ IndexWriter writer = new IndexWriter(new RAMDirectory(),new SimpleAnalyzer(),true, MaxFieldLength.UNLIMITED);
194195 Links links = new Links(iid,null,writer,true);
195196 return links;
196197 }

Comments

Status & tagging log