Skip to content

Instantly share code, notes, and snippets.

#! usr/local/bin/python3.6
# coding: utf-8
from elasticsearch.helpers import bulk
from elasticsearch import Elasticsearch
from . import models
from elasticsearch_dsl.connections import connections
from elasticsearch_dsl import DocType, Text, Date, Search
connections.create_connection()