Reputation: 31511
I would like to lower or eliminate the contribution of the fieldNorm on some searches. I figured that a LocalParam might help, but I cannot find any documentation on it. Is there documentation on how to reduce the consideration for tf, idf, fieldNorm, and coord?
Note that I am specifically looking for a query-time solution. I am not the only client on this index and other than this specific corner-case the index performs well for its purpose.
Thank you.
Upvotes: 1
Views: 774
Reputation: 52799
Similarity is defined in the schema.xml and applies to the complete Core.
This cannot be changed per query.
You would need to check rather how to boost the fields.
Other option is :-
Copy to other field with omitNorms=true
which would disable Length Normalization.
You can switch either the field to be queried on depending upon the requirements.
omitNorms=true|false
This is arguably an advanced option. Set to true to omit the norms associated with this field (this disables length normalization and index-time boosting for the field, and saves some memory). Only full-text fields or fields that need an index-time boost need norms.
Upvotes: 3