Max Field Length

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Max Field Length

Ernesto De Santis
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: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Max Field Length

Luke Shannon
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" <[hidden email]>
To: "Lucene Users List" <[hidden email]>
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: [hidden email]
> For additional commands, e-mail: [hidden email]
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: Max Field Length

Bill Tschumy
In reply to this post by Ernesto De Santis
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: [hidden email]
For additional commands, e-mail: [hidden email]