Method: SearchFlip::Index::ClassMethods#type_name

Defined in:
lib/search_flip/index.rb

#type_nameString

Override to specify the type name used within Elasticsearch. Recap, this gem uses an individual index for each index class, because Elasticsearch requires to have the same mapping for the same field name, even if the field is living in different types of the same index.

Returns:

  • (String)

    The name used for the type within the index



266
267
268
# File 'lib/search_flip/index.rb', line 266

def type_name
  "_doc"
end