title: NewConnectionError(<urllib3.connection.HTTPConnection object at 0x7f09b9f0a7c0>: Failed to establish a new connection: [Errno 111] Connection refused)
body: <p>I am trying to build a simple django elastice search which can search cars. But when I am trying to rebuid the indexes, it gives me the error above. I am following this doc -&gt; <a href="https://django-elasticsearch-dsl.readthedocs.io/en/latest/quickstart.html#install-and-configure" rel="nofollow noreferrer">quickstart elasticsearch</a>...full traceback is given below-&gt;</p>
  <pre><code>elasticsearch.exceptions.ConnectionError: ConnectionError(&lt;urllib3.connection.HTTPConnection object at 0x7f09b9f0a7c0&gt;: Failed to establish a new connection: [Errno 111] Connection refused) caused by: NewConnectionError(&lt;urllib3.connection.HTTPConnection object at 0x7f09b9f0a7c0&gt;: Failed to establish a new connection: [Errno 111] Connection refused)
  </code></pre>
  <p>my models.py is simple Car model having name, color, description, type filds on which I add in document</p>
  <pre><code>class Car(models.Model):
      name = models.CharField(max_length=50)
      color = models.CharField(max_length=50)
      description = models.TextField()
      type = models.IntegerField(choices=[
          (1, &quot;Sedan&quot;),
          (2, &quot;Truck&quot;),
          (4, &quot;SUV&quot;),
      ])
  </code></pre>
  <p>my documents.py file-&gt;</p>
  <pre><code>from django_elasticsearch_dsl import Document
  from django_elasticsearch_dsl.registries import registry
  from .models import Car
  
  
  @registry.register_document
  class CarDocument(Document):
      class Index:
          name = 'cars'
          settings = {'number_of_shards': 1,
                      'number_of_replicas': 0}
  
      class Django:
          model = Car
  
          fields = [
              'name',
              'color',
              'description',
              'type',
          ]
  </code></pre>
  <p>but when i am trying to rebuid the index, it gives the new connection error. The command I am using to rebuild the index is given below -&gt;</p>
  <pre><code>python manage.py search_index --rebuild
  </code></pre>