T53161 WIP create elasticsearch app / doc / stuff

This commit is contained in:
2017-11-03 18:18:12 +01:00
parent fcf19de786
commit 43fa8f1a45
9 changed files with 306 additions and 157 deletions

View File

@@ -0,0 +1,25 @@
import logging
log = logging.getLogger(__name__)
def push_updated_user(user_to_index: dict):
"""Push an update to the Algolia index when a user item is updated"""
log.warning(
'WIP USER ELK INDEXING %s %s',
user_to_index.get('username'),
user_to_index.get('objectID'))
def index_node_save(node_to_index: dict):
log.warning(
'WIP USER NODE INDEXING %s',
node_to_index.get('objectID'))
def index_node_delete(delete_id: str):
log.warning(
'WIP NODE DELETE INDEXING %s', delete_id)