Index: trunk/lucene-search-3/src/main/java/org/wikimedia/lsearch/ranks/Links.java |
— | — | @@ -22,6 +22,7 @@ |
23 | 23 | import org.apache.lucene.index.CorruptIndexException; |
24 | 24 | import org.apache.lucene.index.IndexReader; |
25 | 25 | import org.apache.lucene.index.IndexWriter; |
| 26 | +import org.apache.lucene.index.IndexWriter.MaxFieldLength; |
26 | 27 | import org.apache.lucene.index.Term; |
27 | 28 | import org.apache.lucene.index.TermDocs; |
28 | 29 | import org.apache.lucene.index.TermEnum; |
— | — | @@ -188,8 +189,8 @@ |
189 | 190 | */ |
190 | 191 | public static Links createNewInMemory(IndexId iid) throws IOException{ |
191 | 192 | 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); |
194 | 195 | Links links = new Links(iid,null,writer,true); |
195 | 196 | return links; |
196 | 197 | } |