add mappings
authorFloatingGhost <hannah@coffee-and-dreams.uk>
Mon, 13 Dec 2021 20:15:17 +0000 (20:15 +0000)
committerFloatingGhost <hannah@coffee-and-dreams.uk>
Tue, 14 Dec 2021 13:55:14 +0000 (13:55 +0000)
priv/es-mappings/activity.json [new file with mode: 0644]
priv/es-mappings/hashtag.json [new file with mode: 0644]
priv/es-mappings/user.json [new file with mode: 0644]

diff --git a/priv/es-mappings/activity.json b/priv/es-mappings/activity.json
new file mode 100644 (file)
index 0000000..e476fd5
--- /dev/null
@@ -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 (file)
index 0000000..5330b8a
--- /dev/null
@@ -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 (file)
index 0000000..20beb75
--- /dev/null
@@ -0,0 +1,14 @@
+{
+  "properties": {
+    "instance": {
+      "type": "keyword"
+    },
+    "nickname": {
+      "type": "text"
+    },
+    "bio": {
+      "type": "text"
+    }
+  }
+}
+