Unfortunately, I think altering an existing index to remove it's norms is not possible without writing some custom Java code (in package org.apache.lucene.index) that directly manipulates the FieldInfos and SegmentInfos.

Mike

Bogdan Ghidireac wrote:

Yes, but the norms will be loaded at the search time.. I want to
remove them because I don't have enough memory.

Bogdan

On Fri, Sep 12, 2008 at 3:22 PM, Karl Wettin <[EMAIL PROTECTED]> wrote:

12 sep 2008 kl. 12.25 skrev Bogdan Ghidireac:

I have a large index and I want to remove the norms from a field. Is
there a way to do this without reindexing everything ?

You could invoke IndexReader#setNorm(int, String, float) and set the value
to 1f.


    karl



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to