Skip to content

Nested structs and the Document API #34

@MarkNijhof

Description

@MarkNijhof

If I have the following:

defmodule Es.Account.User do
@es_type "user"
@es_index "user"

use Elastic.Document.API

defstruct id: nil,
email: :string,
first_name: :string,
last_name: :string,
mobile: :string,
customer_number: :string,
profiles: [
]
end

And a profile is a list with maps how would I configure it so elastic search knows about them? I.e. https://www.elastic.co/guide/en/elasticsearch/reference/current/nested.html

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions