class Groonga::Client::Searcher::Schema::Column
Attributes
name[R]
Public Class Methods
new(name, options)
click to toggle source
# File lib/groonga/client/searcher/schema.rb, line 54 def initialize(name, options) @name = name @options = options end
Public Instance Methods
have_full_text_search_index?()
click to toggle source
# File lib/groonga/client/searcher/schema.rb, line 88 def have_full_text_search_index? have_index? and @options[:index_type] == :full_text_search end
have_index?()
click to toggle source
# File lib/groonga/client/searcher/schema.rb, line 84 def have_index? @options[:index] end
normalizer()
click to toggle source
# File lib/groonga/client/searcher/schema.rb, line 63 def normalizer @options[:normalizer] end
reference?()
click to toggle source
# File lib/groonga/client/searcher/schema.rb, line 80 def reference? @options[:reference] end
text_family_type?()
click to toggle source
# File lib/groonga/client/searcher/schema.rb, line 67 def text_family_type? case type when "ShortText", "Text", "LongText" true else false end end
type()
click to toggle source
# File lib/groonga/client/searcher/schema.rb, line 59 def type @options[:type] || "Text" end
vector?()
click to toggle source
# File lib/groonga/client/searcher/schema.rb, line 76 def vector? @options[:vector] end