lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael McCandless <luc...@mikemccandless.com>
Subject Re: removing norms
Date Fri, 12 Sep 2008 17:16:44 GMT

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 <karl.wettin@gmail.com>  
> 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: 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
>


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


Mime
View raw message