Reputation: 483
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
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