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

Deprecation Issue: types removal #11

Open
Chuphay opened this issue Jun 9, 2021 · 1 comment
Open

Deprecation Issue: types removal #11

Chuphay opened this issue Jun 9, 2021 · 1 comment

Comments

@Chuphay
Copy link

Chuphay commented Jun 9, 2021

When running the included example:

from elasticsearch import Elasticsearch #Changed from ElasticSearch
from toute import Document, KeywordField

# Defining a document
class Person(Document):
    # define _meta attributes
    _doctype = "person"  # optional, it can be set after using "having" method
    _index = "universe"  # optional, it can be set after using "having" method
    _es = Elasticsearch()  # optional, it can be explicit passed to methods #Changed from ElasticSearch
    
    # define fields
    name = KeywordField()

# Initializing mappings and settings
Person.init()

I get the following deprecation warning:

ElasticsearchWarning: [types removal] Using include_type_name in create index requests is deprecated. The parameter will be removed in the next major version.

@0mars
Copy link
Contributor

0mars commented Jul 17, 2021

Hi @Chuphay can you please let me know the environment details, like which ES version ?

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

No branches or pull requests

2 participants