diff --git a/content/posts/2021-02.md b/content/posts/2021-02.md index c2a0ca29a..8a751e6ea 100644 --- a/content/posts/2021-02.md +++ b/content/posts/2021-02.md @@ -31,8 +31,7 @@ $ curl -s 'http://localhost:9200/openrxv-items-temp/_count?q=*&pretty' - Set the current items index to read only and make a backup: ```console -$ curl -X PUT "localhost:9200/openrxv-items/_settings" -H 'Content-Type: application/json' -d' -{"settings": {"index.blocks.write":true}}' +$ curl -X PUT "localhost:9200/openrxv-items/_settings" -H 'Content-Type: application/json' -d' {"settings": {"index.blocks.write":true}}' $ curl -s -X POST http://localhost:9200/openrxv-items/_clone/openrxv-items-2021-02-01 ``` @@ -47,8 +46,8 @@ $ curl -s -X POST http://localhost:9200/openrxv-items-temp/_clone/openrxv-items - Then delete the temp and backup: ```console -$ curl -XDELETE 'http://localhost:9200/openrxv-items-temp' -{"acknowledged":true}% +$ curl -XDELETE 'http://localhost:9200/openrxv-items-temp' +{"acknowledged":true}% $ curl -XDELETE 'http://localhost:9200/openrxv-items-2021-02-01' ``` @@ -366,4 +365,40 @@ $ curl -XDELETE 'http://localhost:9200/openrxv-items-temp' $ ./ilri/move-metadata-values.py -i /tmp/move.txt -db dspace -u dspace -p 'fuuu' -f 43 -t 55 ``` +## 2021-02-15 + +- Check the results of the AReS Harvesting from last night: + +```console +$ curl -s 'http://localhost:9200/openrxv-items-temp/_count?q=*&pretty' +{ + "count" : 101126, + "_shards" : { + "total" : 1, + "successful" : 1, + "skipped" : 0, + "failed" : 0 + } +} +``` + +- Set the current items index to read only and make a backup: + +```console +$ curl -X PUT "localhost:9200/openrxv-items/_settings" -H 'Content-Type: application/json' -d' {"settings": {"index.blocks.write":true}}' +$ curl -s -X POST http://localhost:9200/openrxv-items/_clone/openrxv-items-2021-02-15 +``` + +- Delete the current items index and clone the temp one: + +```console +$ curl -XDELETE 'http://localhost:9200/openrxv-items' +$ curl -X PUT "localhost:9200/openrxv-items-temp/_settings" -H 'Content-Type: application/json' -d'{"settings": {"index.blocks.write": true}}' +$ curl -s -X POST http://localhost:9200/openrxv-items-temp/_clone/openrxv-items +$ curl -XDELETE 'http://localhost:9200/openrxv-items-temp' +$ curl -XDELETE 'http://localhost:9200/openrxv-items-2021-02-15' +``` + +- Call with Abdullah from CodeObia to discuss community and collection statistics reporting + diff --git a/docs/2021-02/index.html b/docs/2021-02/index.html index 8ed7ac3f7..115d3312e 100644 --- a/docs/2021-02/index.html +++ b/docs/2021-02/index.html @@ -32,7 +32,7 @@ $ curl -s 'http://localhost:9200/openrxv-items-temp/_count?q=*&pretty - + @@ -70,9 +70,9 @@ $ curl -s 'http://localhost:9200/openrxv-items-temp/_count?q=*&pretty "@type": "BlogPosting", "headline": "February, 2021", "url": "https://alanorth.github.io/cgspace-notes/2021-02/", - "wordCount": "2281", + "wordCount": "2397", "datePublished": "2021-02-01T10:13:54+02:00", - "dateModified": "2021-02-11T22:24:21+02:00", + "dateModified": "2021-02-14T20:00:24+02:00", "author": { "@type": "Person", "name": "Alan Orth" @@ -170,8 +170,7 @@ $ curl -s 'http://localhost:9200/openrxv-items-temp/_count?q=*&pretty
$ curl -X PUT "localhost:9200/openrxv-items/_settings" -H 'Content-Type: application/json' -d'
-{"settings": {"index.blocks.write":true}}'
+$ curl -X PUT "localhost:9200/openrxv-items/_settings" -H 'Content-Type: application/json' -d' {"settings": {"index.blocks.write":true}}'
$ curl -s -X POST http://localhost:9200/openrxv-items/_clone/openrxv-items-2021-02-01
- Delete the current items index and clone the temp one to it:
@@ -182,8 +181,8 @@ $ curl -s -X POST http://localhost:9200/openrxv-items-temp/_clone/openrxv-items
$ curl -XDELETE 'http://localhost:9200/openrxv-items-temp'
-{"acknowledged":true}%
+$ curl -XDELETE 'http://localhost:9200/openrxv-items-temp'
+{"acknowledged":true}%
$ curl -XDELETE 'http://localhost:9200/openrxv-items-2021-02-01'
- Meeting with Peter and Abenet about CGSpace goals and progress
@@ -524,7 +523,37 @@ dspace=# UPDATE metadatavalue SET text_lang='en_US' WHERE dspace_object_id IN (S
$ ./ilri/move-metadata-values.py -i /tmp/move.txt -db dspace -u dspace -p 'fuuu' -f 43 -t 55
-
+
$ curl -s 'http://localhost:9200/openrxv-items-temp/_count?q=*&pretty'
+{
+ "count" : 101126,
+ "_shards" : {
+ "total" : 1,
+ "successful" : 1,
+ "skipped" : 0,
+ "failed" : 0
+ }
+}
+
$ curl -X PUT "localhost:9200/openrxv-items/_settings" -H 'Content-Type: application/json' -d' {"settings": {"index.blocks.write":true}}'
+$ curl -s -X POST http://localhost:9200/openrxv-items/_clone/openrxv-items-2021-02-15
+
$ curl -XDELETE 'http://localhost:9200/openrxv-items'
+$ curl -X PUT "localhost:9200/openrxv-items-temp/_settings" -H 'Content-Type: application/json' -d'{"settings": {"index.blocks.write": true}}'
+$ curl -s -X POST http://localhost:9200/openrxv-items-temp/_clone/openrxv-items
+$ curl -XDELETE 'http://localhost:9200/openrxv-items-temp'
+$ curl -XDELETE 'http://localhost:9200/openrxv-items-2021-02-15'
+