T52710 search on id works

This commit is contained in:
2017-12-08 13:12:39 +01:00
parent b6a93452cd
commit 533544117b
4 changed files with 67 additions and 41 deletions

View File

@@ -115,7 +115,11 @@ def create_doc_from_user_data(user_to_index):
def create_doc_from_node_data(node_to_index):
# node stuff
doc_id = str(node_to_index['objectID'])
doc_id = str(node_to_index.get('objectID', ''))
if not doc_id:
log.error('ID missing %s', node_to_index)
return
doc = Node(_id=doc_id)