Elasticsearch Create Index Python String Compare Function