Modifying the Score

Build 1501 on 14/Nov/2017  This topic last edited on: 17/Mar/2016, at 16:49

Operator

Description

Example

s=N

Replace the predicate's score Z(Ri).Wi by an explicit value.

price<500{s=1000}

s+=N

Increase the predicate's score by a given value.

GUI{s+=100000}

s-=N

Decrease the predicate's score by a given value.

Note: The score of a given predicate can be negative, but the final score of the document can never be lower than 0.

corporate/tree:"Top/Attributes/XXX" {s-=100000}

w=N

Replace the predicate's weight Wi by an explicit value.

design{w=10000}

w*=N

Multiply the predicate's weight by a given value.

design{w*=2}

w/=N

Divide the predicate's weight by a given value.

design{w/=2}

Please note the following:

The score modifiers are applied in the same order as they appear. In the case of two conflicting modifiers (e.g. {s=1000,s=2000} ), the last one is applied.

In the case when an explicit score (s=) is specified, the predicate's weight is ignored so the 'w' options have no effect.

The explicit score should only be used for non-textual predicates (numeric values and categories) since this modifier completely ignores the ranking score class that was set when the document was indexed.