Skip to content

mapping not honoring document_type #270

@andrejj

Description

@andrejj

I set a document_type directive.
Then use Influencer13.create_index!
But the mapping does not contain my document type.
Instead it contains a type derived from class name.

class Influencer13
  include Elasticsearch::Persistence::Model
  index_name "influencers"
  document_type 'influencer'
  mapping do
    puts @type
    @type = 'influencer'
  end
end

=> "influencer13"

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions