lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael McCandless" <>
Subject Re: How to disable lucene norm factor?
Date Tue, 13 Mar 2007 15:43:42 GMT

"maureen tanuwidjaja" <> wrote:

>   How to disable lucene norm factor?

Once you've created a Field and before adding to your Document
index, just call field.setOmitNorms(true).

Note, however, that you must do this for all Field instances by that
same field name because whenever Lucene merges segments, if even one
Document did not disable norms then this will "spread" so that all documents
keep their norms, for the same field name.

Ie you must fully rebuild your index with the above code change to
truly not store norms.


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message