from datetime import datetime
from elasticsearch import Elasticsearch
es = Elasticsearch()
doc = {
\'author\': \'kimchy\',
\'text\': \'Elasticsearch: cool.
This is nothing to do with increasing your timeout to 30 seconds. Do people actually think that elastic search should need up to 30 seconds to return one tiny hit?
The way I fixed this problem was go to config/elasticsearch.yml uncomment the following
http.port: 9200
network.host: 'localhost'
Network.host might be set to 192.168.0.1 which might work But I just changed it to 'localhost'