A system and method for scoring documents in a search, wherein the scoring
algorithm may be reconfigured dynamically. When a query is submitted, a
score data structure is created for each document to be scored, which
contains fields of information about how a given document compares to a
query. A ranker object embodies a formula that derives a scalar score
from the information contained in a score data structure. Scoring
software is configured to apply the formula embodied in a ranker object
to the values in the score data structure. Thus, the scoring formula can
be dynamically changed without recompiling the scoring software by
providing a new ranker object. Preferably, ranker objects are organized
into rank sets, where each rank set contains a different ranker object
for each class of document to be scored.