From 0b5206015b4a7aa36e4d3b7cd6ad7b64fa0daa0c Mon Sep 17 00:00:00 2001 From: FloatingGhost Date: Mon, 13 Dec 2021 20:15:17 +0000 Subject: [PATCH] add mappings --- priv/es-mappings/activity.json | 21 +++++++++++++++++++++ priv/es-mappings/hashtag.json | 7 +++++++ priv/es-mappings/user.json | 14 ++++++++++++++ 3 files changed, 42 insertions(+) create mode 100644 priv/es-mappings/activity.json create mode 100644 priv/es-mappings/hashtag.json create mode 100644 priv/es-mappings/user.json diff --git a/priv/es-mappings/activity.json b/priv/es-mappings/activity.json new file mode 100644 index 000000000..e476fd59f --- /dev/null +++ b/priv/es-mappings/activity.json @@ -0,0 +1,21 @@ +{ + "properties": { + "_timestamp": { + "type": "date", + "index": true + }, + "instance": { + "type": "keyword" + }, + "content": { + "type": "text" + }, + "hashtags": { + "type": "keyword" + }, + "user": { + "type": "text" + } + } +} + diff --git a/priv/es-mappings/hashtag.json b/priv/es-mappings/hashtag.json new file mode 100644 index 000000000..5330b8a2e --- /dev/null +++ b/priv/es-mappings/hashtag.json @@ -0,0 +1,7 @@ +{ + "properties": { + "hashtag": { + "type": "text" + } + } +} diff --git a/priv/es-mappings/user.json b/priv/es-mappings/user.json new file mode 100644 index 000000000..20beb75c2 --- /dev/null +++ b/priv/es-mappings/user.json @@ -0,0 +1,14 @@ +{ + "properties": { + "instance": { + "type": "keyword" + }, + "nickname": { + "type": "text" + }, + "bio": { + "type": "text" + } + } +} +