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.
When running the included example:
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.