From: FloatingGhost Date: Mon, 13 Dec 2021 20:15:17 +0000 (+0000) Subject: add mappings X-Git-Url: https://git.squeep.com/?a=commitdiff_plain;h=72e22a6dae8cc3e5921e95e281bf37500bdd2762;p=akkoma add mappings --- 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" + } + } +} +