Skip to content

Commit

Permalink
Quick fixes for semsim search / API config (#503)
Browse files Browse the repository at this point in the history
Fixes prefix vs category mismatch in the semsim search get request,
update default port for semsim search
  • Loading branch information
kevinschaper authored Dec 13, 2023
1 parent 3efaf1c commit d8a9873
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion backend/src/monarch_py/api/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class Settings(BaseSettings):
phenio_db_path = os.getenv("PHENIO_DB_PATH") if os.getenv("PHENIO_DB_PATH") else "/data/phenio.db"

semsim_server_host = os.getenv("SEMSIM_SERVER_HOST", "127.0.0.1")
semsim_server_port = os.getenv("SEMSIM_SERVER_PORT", 18811)
semsim_server_port = os.getenv("SEMSIM_SERVER_PORT", 9999)


settings = Settings()
Expand Down
2 changes: 1 addition & 1 deletion backend/src/monarch_py/api/semsim.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ def _post_compare(request: SemsimCompareRequest):
return semsimian().compare(request.subjects, request.objects)


@router.get("/search/{termset}/{prefix}")
@router.get("/search/{termset}/{category}")
def _search(
termset: str = Path(..., title="Termset to search"),
category: SemsimSearchCategory = Path(..., title="Category of entities to search for"),
Expand Down

0 comments on commit d8a9873

Please sign in to comment.