Skip to content

Commit

Permalink
Merge pull request #541 from monarch-initiative/taxon-tokenizing
Browse files Browse the repository at this point in the history
add additional entity field tokenizations
  • Loading branch information
kevinschaper authored Dec 13, 2023
2 parents 2e6eb5e + 73cabb1 commit b15ce72
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 2 deletions.
42 changes: 42 additions & 0 deletions scripts/add_entity_copyfields.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 3 additions & 2 deletions scripts/load_solr.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b15ce72

Please sign in to comment.