Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Define nested fields #17

Open
v-kolesnikov opened this issue Feb 11, 2019 · 0 comments · May be fixed by #26
Open

Define nested fields #17

v-kolesnikov opened this issue Feb 11, 2019 · 0 comments · May be fixed by #26

Comments

@v-kolesnikov
Copy link
Collaborator

https://www.elastic.co/guide/en/elasticsearch/reference/current/nested.html

Here is a workaround

schema(:my_index) do
  attribute :authors,
    Types::Object.meta(
      type: 'nested',
      properties: {
        'person_name': { 'type': 'text' }
      }
    )
end

that should be rewritten as following:

schema(:my_index) do
  attribute :authors, Types::Nested do
    attribute :person_name, Types.Text
  end
end
@demsullivan demsullivan linked a pull request Aug 10, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant