Admin Stuff - cyverse-gis/suas-metadata GitHub Wiki

Install Java, Maven, & JavaFX

To build the program from source, you need to install Java (v8+), JavaFX (v12+), and Apache Maven.

https://www.baeldung.com/java-home-on-windows-7-8-10-mac-os-x-linux

https://openjfx.io/openjfx-docs/#install-javafx

Working on the repository

cd
git clone https://github.com/cyverse-gis/suas-metadata
cd ~/suas-metadata/Calliope
java -jar prebuilt/Calliope*

Administrator tasks

Destroying and Recreating Indexes

WARNING DANGER ZONE

Admins have the ability to modify the existing indexes, or to destroy and recreate them.

In the suas-metadata/Calliope/src/main/java/controller/CalliopeViewController.java file there are a set of commented lines

// Uncomment to destroy and recreate the ElasticSearch Index
//esConnectionManager.nukeAndRecreateUserIndex();
//esConnectionManager.nukeAndRecreateMetadataIndex();
//esConnectionManager.nukeAndRecreateCollectionsIndex();
//esConnectionManager.nukeAndRecreateSitesIndex();

By uncommenting a line, building the program using the mvn -U compile package option, and then logging in as an Administrator, the changes will be executed on the server side running the Elastic Search.