July 2019
Beginner to intermediate
302 pages
9h 38m
English
Follow these steps to perform the integration between Elasticsearch and our Flask application:
from elasticsearch import Elasticsearch
es = Elasticsearch('http://localhost:9200/')es.indices.create('catalog', ignore=400)
Here, we created an es object from the Elasticsearch class, which accepts the server URL. ignore=400 will ignore any errors that are raised since this index has been created already.