Skip to content
This repository has been archived by the owner on Sep 2, 2020. It is now read-only.

Change example #40

Open
ernst545 opened this issue Dec 14, 2018 · 1 comment
Open

Change example #40

ernst545 opened this issue Dec 14, 2018 · 1 comment

Comments

@ernst545
Copy link

In this example class Meta should be changed to class Index

class BlogIndex(DocType):
    pk = Integer()
    title = Text(fields={'raw': Keyword()})
    created_at = Date()
    body = Text()
    tags = Keyword(multi=True)
    is_published = Boolean()

    class Meta:
        index = 'blog'

This api has changed in the previous release of elasticsearch-dsl-py:

class Index:
    name = 'blog'
@josemlp91
Copy link

@ernst545 updated!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants