code: def __init__(self, es_index="dictionary"):
      self.es_index = es_index
      self.es = Elasticsearch()
      s = Search(using=self.es, index=es_index)
      ids = [h.meta.id for h in s.scan()]
      words = sorted(ids)
      self.words = words
      self.i2w = {}
      self.w2i = {}
      for i, word in enumerate(self.words):
          self.i2w[i] = word
          self.w2i[word] = i
  
file_path: underthesea/apps/directory/col_data.py
imports: from elasticsearch import Elasticsearch
  from elasticsearch_dsl import Search
  import requests
  from bs4 import BeautifulSoup
label_desc: Use image node_id 1 to create a new Dictionary object  with example: obj = Dictionary(es_index)