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 Ernesto De Santis <er...@colaborativa.net> on 2005/05/06 23:42:08 UTC

Max Field Length

Hi

Exist a max length for a Field value?
I have problems indexing large body files.
The bottom isn't indexed.

Bye,
Ernesto.

-- 
Ernesto De Santis - Colaborativa.net
Córdoba 1147 Piso 6 Oficinas 3 y 4
(S2000AWO) Rosario, SF, Argentina.



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: Max Field Length

Posted by Bill Tschumy <bi...@otherwise.com>.
On May 6, 2005, at 4:42 PM, Ernesto De Santis wrote:

> Hi
>
> Exist a max length for a Field value?
> I have problems indexing large body files.
> The bottom isn't indexed.
>
> Bye,
> Ernesto.
>
> --  
> Ernesto De Santis - Colaborativa.net
> Córdoba 1147 Piso 6 Oficinas 3 y 4
> (S2000AWO) Rosario, SF, Argentina.
>

After you create your IndexWriter, do the following:

     writer.maxFieldLength = Integer.MAX_VALUE;

Substitute you own limit if you don't want it (effectively)  
unlimited.  The default value is 10,000 terms.


-- 
Bill Tschumy
Otherwise -- Austin, TX
http://www.otherwise.com



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Re: Max Field Length

Posted by Luke Shannon <ls...@futurebrand.com>.
Hi;

I think by default only 10,000 terms will be indexed for a field.

You can change this using the  maxFieldLength method of IndexWriter.

Luke

----- Original Message ----- 
From: "Ernesto De Santis" <er...@colaborativa.net>
To: "Lucene Users List" <ja...@lucene.apache.org>
Sent: Friday, May 06, 2005 5:42 PM
Subject: Max Field Length


> Hi
>
> Exist a max length for a Field value?
> I have problems indexing large body files.
> The bottom isn't indexed.
>
> Bye,
> Ernesto.
>
> -- 
> Ernesto De Santis - Colaborativa.net
> Córdoba 1147 Piso 6 Oficinas 3 y 4
> (S2000AWO) Rosario, SF, Argentina.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
> For additional commands, e-mail: java-user-help@lucene.apache.org
>



---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org