Skip to content

Deprecation Issue: types removal #11

Description

@Chuphay

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions