LP#1549505: add flag to tweak popularity-adjusted relevance
authorGalen Charlton <gmc@esilibrary.com>
Fri, 11 Mar 2016 18:27:03 +0000 (13:27 -0500)
committerGalen Charlton <gmc@esilibrary.com>
Fri, 11 Mar 2016 18:27:03 +0000 (13:27 -0500)
commit97ccbca72fe63b519faea56bb492b4d3772fec3a
treee9c59ae4fe107a6685bceb5a269e40d42261a903
parent1c63b8bdc6b28945a0af3219ea3d75ef3f05cdb2
LP#1549505: add flag to tweak popularity-adjusted relevance

This adds a new global_flag, search.max_popularity_importance_multiplier,
to control the factor by which popularity affects Popularity Adjusted
relevance ranking.

The value should be a decimal number, typically between 1.0 and 2.0:

* 1.0 be would be equivalent to not adjusting relevance for popularity
  at all.
* 1.1 would mean that the multiplier would range from 1 (for zero
  popularity) to 1.1 (for maximum popularity)
* values less than 1.0 would have the effect of boosting lower
  popularity records in search results -- dramatically

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Driver/Pg/QueryParser.pm
Open-ILS/src/perlmods/lib/OpenILS/Application/Storage/Publisher/metabib.pm
Open-ILS/src/sql/Pg/950.data.seed-values.sql
Open-ILS/src/sql/Pg/upgrade/XXXX.schema.statisitcal-ratings.sql