summaryrefslogtreecommitdiffstats
path: root/extra/elasticsearch
diff options
context:
space:
mode:
authorBryan Newbold <bnewbold@robocracy.org>2021-04-08 15:10:24 -0700
committerBryan Newbold <bnewbold@robocracy.org>2021-04-08 15:12:31 -0700
commit9946a6a02d879b8d7a9ee1c141801a33f4f2aa57 (patch)
tree043e47eba0a589046098d9b4730a69dcf388d924 /extra/elasticsearch
parent8b69e702fd7e9da4683f64989264c8f5bc72c575 (diff)
downloadfatcat-9946a6a02d879b8d7a9ee1c141801a33f4f2aa57.tar.gz
fatcat-9946a6a02d879b8d7a9ee1c141801a33f4f2aa57.zip
ES: rename fatcat_ref.json to ref_schema.json for consistency; add to README
Diffstat (limited to 'extra/elasticsearch')
-rw-r--r--extra/elasticsearch/README.md5
-rw-r--r--extra/elasticsearch/ref_schema.json (renamed from extra/elasticsearch/fatcat_ref.json)0
2 files changed, 4 insertions, 1 deletions
diff --git a/extra/elasticsearch/README.md b/extra/elasticsearch/README.md
index 196ac588..d2a34a24 100644
--- a/extra/elasticsearch/README.md
+++ b/extra/elasticsearch/README.md
@@ -27,7 +27,8 @@ from it's `files`.
## Setting Up Elasticsearch
-We use elasticsearch version 6.x, with the `analysis-icu` plugin installed:
+We use elasticsearch version 7.10 (the final "open source" release), with the
+`analysis-icu` plugin installed:
sudo /usr/share/elasticsearch/bin/elasticsearch-plugin install analysis-icu
sudo service elasticsearch restart
@@ -42,10 +43,12 @@ Drop and rebuild the schema:
http delete :9200/fatcat_container
http delete :9200/fatcat_file
http delete :9200/fatcat_changelog
+ http delete :9200/fatcat_ref
http put :9200/fatcat_release?include_type_name=true < release_schema.json
http put :9200/fatcat_container?include_type_name=true < container_schema.json
http put :9200/fatcat_file?include_type_name=true < file_schema.json
http put :9200/fatcat_changelog?include_type_name=true < changelog_schema.json
+ http put :9200/fatcat_ref?include_type_name=true < ref_schema.json
Put a single object (good for debugging):
diff --git a/extra/elasticsearch/fatcat_ref.json b/extra/elasticsearch/ref_schema.json
index 32c7a3cd..32c7a3cd 100644
--- a/extra/elasticsearch/fatcat_ref.json
+++ b/extra/elasticsearch/ref_schema.json