It will affect the entire index because it 's a parameter of IndexWriter.
but you can modify it anytime you like before IndexWriter.addDocument.
If you want to truncate different fields with different maxLength. you
should avoid multithreads' race condition.
maybe you can add a TokenFilter t
Thanks Li. It makes sense
On Sat, Aug 27, 2011 at 7:28 PM, Li Li wrote:
> It will affect the entire index because it 's a parameter of IndexWriter.
> but you can modify it anytime you like before IndexWriter.addDocument.
> If you want to truncate different fields with different maxLength. you
o: java-user@lucene.apache.org
> Subject: Re: Question about MaxFieldLength
>
>It will affect the entire index because it 's a parameter of
IndexWriter.
> but you can modify it anytime you like before IndexWriter.addDocument.
> If you want to truncate different fields with