Class: Ferret::Search::Hit

Inherits:
Object
  • Object
show all
Defined in:
ext/r_search.c

Overview

Summary

A hit represents a single document match for a search. It holds the document id of the document that matches along with the score for the match. The score is a positive Float value. The score contained in a hit is not normalized so it can be greater than 1.0. To normalize scores to the range 0.0..1.0 divide the scores by TopDocs#max_score.