BIASNRANGE
The BIASNRANGE
field specifier (case sensitive) allows you to bias the score of results at query time according to the numerical proximity of the value in the specified field to a specified continuous range of values.
NOTE: You can optimize the speed of this field specifier by restricting the field to the property type.
Format
FieldText=BIASNRANGE{lowerOptimum,upperOptimum,lowerRange,upperRange,percentage}:yourField
lowerOptimum
|
The lowest value that You can specify an open-ended range, by setting this value to a period ( |
upperOptimum
|
The highest value that You can specify an open-ended range, by setting this value to a period ( |
lowerRange
|
A positive number that determines the range of values below When |
upperRange
|
A positive number that determines the range of values above When NOTE: To use the same value for |
percentage
|
A percentage in the range -100 to 100. The percentage change to apply to values that occur in the optimum range. (The boosted relevance score cannot be greater than 100% or less than -100%.) For values outside the optimum range, but inside the range set by When you set to |
yourField
|
The name of the field that must be present, and must contain a value in the specified value range, for the document relevance to be modified. |
NOTE: For compatibility with NRANGE, the range values can include the greater than (>) and less than (<) symbols, but these have no effect.
Examples
FieldText=BIASNRANGE{100,150,20,40,10}:*/PRICE
A document whose PRICE
field value is between 100 and 150 has its weight increased by 10%. This boost decreases linearly to 0% at 80 and lower, and 190 and higher.
FieldText=BIASNRANGE{100,150,30,-20}:*/PRICE
A document whose PRICE
field value is between 100 and 150 has its weight decreased by 20%. This penalty decreases linearly to 0% at 70 and lower, and 180 and higher.
FieldText=BIASNRANGE{-10,10,5,30}:*/PRICE
A document whose PRICE
field value is between -10 and 10 has its weight increased by 30%. This boost decreases linearly to 0% at -15 and lower, and 15 and higher.
FieldText=BIASNRANGE{.,150,30,-20}:*/PRICE
A document whose PRICE
field value is lower than 150 has its weight decreased by 20%. This penalty decreases linearly to 0% at 180 and higher.