Method: IndexedSearch::Match::Result#initialize
- Defined in:
- lib/indexed_search/match/result.rb
#initialize(matcher, term_map, rank_multiplier, term_multiplier, limit_reduction_factor, type_reduction_factor, matchidx = 0) ⇒ Result
Returns a new instance of Result.
8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/indexed_search/match/result.rb', line 8 def initialize(matcher, term_map, rank_multiplier, term_multiplier, limit_reduction_factor, type_reduction_factor, matchidx=0) self.matcher = matcher self.term_map = term_map self.rank_multiplier = rank_multiplier self.term_multiplier = term_multiplier self.limit_reduction_factor = limit_reduction_factor self.type_reduction_factor = type_reduction_factor self.matchidx = matchidx self.list_map = Hash.new { |hash,key| hash[key] = [] } self.reduced_by_limit_reduction_factor = false self.ignored_because_already_used = [] end |