File tree Expand file tree Collapse file tree 5 files changed +27
-1
lines changed
Expand file tree Collapse file tree 5 files changed +27
-1
lines changed Original file line number Diff line number Diff line change @@ -12,4 +12,9 @@ you should be able to connect to http://localhost:9200 and see something like be
1212If you see error in elasticsearch docker container and that is related to heap memory, try upgrading memory to
13138Gb in docker setting.
1414
15- For all the implemented elasticsearch APIs, please refere to the code in backend/app/elasticsearch/connect.py
15+ For all the implemented elasticsearch APIs, please refere to the code in backend/app/elasticsearch/connect.py
16+
17+ ## Common Commands
18+
19+ * List indices: ` http://localhost:9200/_cat/indices `
20+ * Delete index: ` curl -X DELETE http://localhost:9200/{index name} `
Original file line number Diff line number Diff line change 1+ # Utility Scripts
2+
3+ * `` /develop `` includes scripts to help when developing application. For example to create test data in a running instance
4+ or delete existing test data.
5+ * `` /keylcloak `` includes Keycloak configuration files and Clowder theme. Used when creating a new instance.
6+ * `` /metadata `` includes examples of metadata definitions. Used to populate database for new or testing instances.
Original file line number Diff line number Diff line change 1+ #! /bin/sh
2+
3+ # Delete data from mongo
4+ mongo clowder2 < mongo-delete.js
5+ # mongo clowder2 --eval "db.dropDatabase()
6+
7+ # Delete data from elasticsearch
8+ curl -X DELETE http://localhost:9200/dataset
9+ curl -X DELETE http://localhost:9200/file
Original file line number Diff line number Diff line change 1+ db . datasets . drop ( )
2+ db . files . drop ( )
3+ db . file_versions . drop ( )
4+ db . folders . drop ( )
5+ db . metadata . drop ( )
6+
File renamed without changes.
You can’t perform that action at this time.
0 commit comments