Mailing List Archive

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