diff --git a/scripts/add_entity_copyfields.sh b/scripts/add_entity_copyfields.sh index 85668b62..b8a300ad 100755 --- a/scripts/add_entity_copyfields.sh +++ b/scripts/add_entity_copyfields.sh @@ -84,3 +84,45 @@ curl -X POST -H 'Content-type:application/json' --data-binary '{ } }' http://localhost:8983/solr/entity/schema +# taxon label + +curl -X POST -H 'Content-type:application/json' --data-binary '{ + "add-copy-field": { + "source": "in_taxon_label", + "dest": "in_taxon_label_t" + } +}' http://localhost:8983/solr/entity/schema + +curl -X POST -H 'Content-type:application/json' --data-binary '{ + "add-copy-field": { + "source": "in_taxon_label", + "dest": "in_taxon_label_ac" + } +}' http://localhost:8983/solr/entity/schema + +# taxon id + +curl -X POST -H 'Content-type:application/json' --data-binary '{ + "add-copy-field": { + "source": "in_taxon", + "dest": "in_taxon_t" + } +}' http://localhost:8983/solr/entity/schema + +# description + +curl -X POST -H 'Content-type:application/json' --data-binary '{ + "add-copy-field": { + "source": "description", + "dest": "description_t" + } +}' http://localhost:8983/solr/entity/schema + +# xref + +curl -X POST -H 'Content-type:application/json' --data-binary '{ + "add-copy-field": { + "source": "xref", + "dest": "xref_t" + } +}' http://localhost:8983/solr/entity/schema diff --git a/scripts/load_solr.sh b/scripts/load_solr.sh index fd8ffae2..5a1495ff 100755 --- a/scripts/load_solr.sh +++ b/scripts/load_solr.sh @@ -15,8 +15,9 @@ echo "Download the schema from monarch-py" # This replaces poetry run monarch schema > model.yaml and just awkwardly pulls from a github raw link # temporarily retrieve from a branch that has the sssom changes, they can't be merged until the new build runs -curl -O https://raw.githubusercontent.com/monarch-initiative/monarch-app/add-deprecated-slot/backend/src/monarch_py/datamodels/model.yaml -curl -O https://raw.githubusercontent.com/monarch-initiative/monarch-app/add-deprecated-slot/backend/src/monarch_py/datamodels/similarity.yaml + +curl -O https://raw.githubusercontent.com/monarch-initiative/monarch-app/main/backend/src/monarch_py/datamodels/model.yaml +curl -O https://raw.githubusercontent.com/monarch-initiative/monarch-app/main/backend/src/monarch_py/datamodels/similarity.yaml echo "Starting the server" poetry run lsolr start-server