Class CountScorer

  • All Implemented Interfaces:
    DelegatingScorer, Scorer, FlyweightPrototype<Scorer>

    public class CountScorer
    extends AbstractWeightedScorer
    implements DelegatingScorer
    A trivial scorer that computes the score by adding the counts (the number of occurrences within the current document) of each term multiplied by the weight of the relative index. Mainly useful for debugging and testing purposes.

    This class uses a CounterCollectionVisitor and related classes to take into consideration only terms that are actually involved in the current document.

    Author:
    Mauro Mereu, Sebastiano Vigna