Skip to content

Instantly share code, notes, and snippets.

@douglascamata
Last active December 30, 2015 15:08
Show Gist options
  • Save douglascamata/7846043 to your computer and use it in GitHub Desktop.
Save douglascamata/7846043 to your computer and use it in GitHub Desktop.
if not isinstance(processing_result, list):
processing_result = [processing_result]
for user_attribute in processing_result:
if user_attribute is not None:
print "INDEXING user_attribute = '%s'" % user_attribute
self.es_conn.index("user", module["index_name"], user_attribute, id=attribute_id)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment