Last active
December 30, 2015 15:08
-
-
Save douglascamata/7846043 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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