summaryrefslogtreecommitdiffstats
path: root/extra/elasticsearch/file_schema.json
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2020-01-29 23:26:58 -0800
committerBryan Newbold <bnewbold@robocracy.org>2020-01-29 23:26:58 -0800
commite98f389a53d886b4fa8f0237b90b086999770f78 (patch)
tree21019802437b801cfdd9754f6a1bdc6b565779ad /extra/elasticsearch/file_schema.json
parentbf718fd076476c1a54e80ca88cd02ede606ab6f3 (diff)
downloadfatcat-e98f389a53d886b4fa8f0237b90b086999770f78.tar.gz
fatcat-e98f389a53d886b4fa8f0237b90b086999770f78.zip
elastic schema fixes
Diffstat (limited to 'extra/elasticsearch/file_schema.json')
-rw-r--r--extra/elasticsearch/file_schema.json12
1 files changed, 6 insertions, 6 deletions
diff --git a/extra/elasticsearch/file_schema.json b/extra/elasticsearch/file_schema.json
index 66d81e0b..2a7e5be0 100644
--- a/extra/elasticsearch/file_schema.json
+++ b/extra/elasticsearch/file_schema.json
@@ -13,7 +13,7 @@
}
},
"mappings": {
- "changelog": {
+ "file": {
"properties": {
"ident": { "type": "keyword", "doc_values": false },
"state": { "type": "keyword" },
@@ -33,13 +33,13 @@
"in_ia": { "type": "boolean" },
"release_id": { "type": "alias", "path": "release_ids" },
- "sha1hex": { "type": "alias", "path": "sha1hex" },
- "sha256hex": { "type": "alias", "path": "sha256hex" },
- "md5hex": { "type": "alias", "path": "md5hex" },
+ "sha1hex": { "type": "alias", "path": "sha1" },
+ "sha256hex": { "type": "alias", "path": "sha256" },
+ "md5hex": { "type": "alias", "path": "md5" },
"size": { "type": "alias", "path": "size_bytes" },
"domain": { "type": "alias", "path": "domains" },
- "host": { "type": "alias", "path": "host" },
- "rel": { "type": "alias", "path": "rel" }
+ "host": { "type": "alias", "path": "hosts" },
+ "rel": { "type": "alias", "path": "rels" }
}
}
}