Class: Sunspot::Type::TrieTimeType

Inherits:
TimeType show all
Defined in:
lib/sunspot/type.rb

Overview

Index times using a TrieField. Internally, trie times are indexed as Unix timestamps in a trie integer field, as TrieField does not support datetime types natively. This distinction should have no effect from the standpoint of the library’s API.

Constant Summary

Constants inherited from TimeType

Sunspot::Type::TimeType::XMLSCHEMA

Instance Method Summary collapse

Methods inherited from TimeType

#cast, #to_indexed, #to_literal

Methods inherited from AbstractType

#accepts_dynamic?, #accepts_more_like_this?, instance, #to_literal

Instance Method Details

#indexed_name(name) ⇒ Object



293
294
295
# File 'lib/sunspot/type.rb', line 293

def indexed_name(name)
  "#{super}t"
end