You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@lucene.apache.org by Doug Cutting <DC...@grandcentral.com> on 2002/01/28 18:18:13 UTC

RE: strange search problems(cannot query for more than the first 10000 words!?!)

> From: Karl Øie [mailto:karl@gan.no]
> 
> I have created a testclass for working with Analyzers and ran 
> into a strange
> problem; I cannot search for text in fields with more than 
> 10000 words!?!?

Lucene by default stops indexing after the 10,000th token.
See
http://jakarta.apache.org/lucene/docs/api/org/apache/lucene/index/IndexWrite
r.html#maxFieldLength

You can disable this with:
  indexWriter.maxFieldLength = Integer.MAX_VALUE;

Doug

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>