Method: SearchFlip::Index::ClassMethods#mapping

Defined in:
lib/search_flip/index.rb

#mappingObject

Specifies a type mapping. Override to specify a custom mapping. Please note that you don’t have to include the type name, even for Elasticsearch versions before 7, as SearchFlip automatically adds the type name if neccessary.

Examples:

def self.mapping
  {
    properties: {
      email: { type: "string", analyzer: "custom_analyzer" }
    }
  }
end


405
406
407
# File 'lib/search_flip/index.rb', line 405

def mapping
  {}
end