Method: IndexedSearch::Match::Exact#term_map
- Defined in:
- lib/indexed_search/match/exact.rb
#term_map ⇒ Object
ideally exact matches ideally shouldn’t need this complexity, just other types do… since ‘exact’ match terms exactly equal their matches (duh), but it’s just too complicated to make a difference.…
23 24 25 |
# File 'lib/indexed_search/match/exact.rb', line 23 def term_map @term_map ||= {}.tap { |map| term_matches.each { |term| map[term] = [term] } } end |