You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by Doug Cutting <DC...@grandcentral.com> on 2001/10/02 23:55:15 UTC

RE: [Lucene-dev] Problem: Maximum field size

> From: helrib@aeiou.pt [mailto:helrib@aeiou.pt]
> 
> Is there any limit for the size of a field? I've tried to index a 
> document with a field (UnStored type) of something like 80000 chars 
> and I've noticed that the words which are in the end of that field 
> aren't indexed... If there is a size limitation, there is any way to 
> turn this around so that I can index very large fields?

By default Lucene will not index more than 10,000 terms per field.  You can
change this by setting IndexWriter.maxFieldLength.  See:
 
http://jakarta.apache.org/lucene/api/org/apache/lucene/index/IndexWriter.htm
l#maxFieldLength

Doug