the beest
the beest

Reputation: 483

How to make Apache Solr disregard the size of documents when calculating their relevancy scores

Is the ability to force Solr to disregard the size of documents when calculating their relevancy scores during a search a feature that's already built into Solr, or, is it otherwise simple to do so?

Upvotes: 1

Views: 596

Answers (1)

MatsLindh
MatsLindh

Reputation: 52902

You can disable length normalization by setting omitNorms="true" for the field in question. Be advised that this also disables index time boosts.

From Field Type Definitions and Properties:

omitNorms If true, omits the norms associated with this field (this disables length normalization and index-time boosting for the field, and saves some memory). Defaults to true for all primitive (non-analyzed) field types, such as int, float, data, bool, and string. Only full-text fields or fields that need an index-time boost need norms.

Upvotes: 4

Related Questions