You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: