lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Narendra yadala" <>
Subject Storage of norms array
Date Tue, 09 Oct 2007 13:49:49 GMT
Hi All

Currently I am using document.setBoost for setting a boost proportionate to
some other parameter.
For ex: p is my parameter whose value is 5.0f
I am using document.setBoost(p) for making this p as a boost for this
But since document.boost gets encoded inside norms array, so I am forced to
the norms array for all the fields in my document and as a result
I am wasting space of 2 bytes for two fields for which I dont need any
length normalization and stuff.
And also my parameter p does not exist for all the documents in the index.
So now if I have million documents and only 2% has this parameter p then I
am storing
980,000*3 extra bytes considering there are 3 fields in my document.
So what should I do considering the space considerations in my context.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message