From 9946a6a02d879b8d7a9ee1c141801a33f4f2aa57 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Thu, 8 Apr 2021 15:10:24 -0700 Subject: ES: rename fatcat_ref.json to ref_schema.json for consistency; add to README --- extra/elasticsearch/README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'extra/elasticsearch/README.md') 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): -- cgit v1.2.3