document length in lucene 4.0

前端 未结 1 1202
独厮守ぢ
独厮守ぢ 2021-01-26 13:03

as I\'ve read the documentation of the lucene 4.0, now this library stores some statistics as in order to compute different scoring models, one of them bm25. Is there a way, bes

相关标签:
1条回答
  • 2021-01-26 13:39

    You can store whatever you want from FieldInvertState into the 'norm', and it doesn't have to be a 8 bit float either.

    The default is a lossy storage of the length, if you want the actual exact length, maybe you choose to use a short (16bits) per document or something else instead.

    See Similarity.computeNorm

    0 讨论(0)
提交回复
热议问题