Sage-Bionetworks / rocc-app

Registry of Open Community Challenge (ROCC) web client
Apache License 2.0
0 stars 0 forks source link

Free text search does not work on challenge search page on test server #357

Closed tschaffter closed 2 years ago

tschaffter commented 2 years ago

https://test.challenge-registry.org/search/challenges

Error:

{
  "detail": "text index required for $text query, full error: {'ok': 0.0, 'errmsg': 'text index required for $text query', 'code': 27, 'codeName': 'IndexNotFound'}",
  "status": 500,
  "title": "Internal error"
}
tschaffter commented 2 years ago

The free text search works fine at the API server level. The issue must be at the app level.

Example:

curl -X GET "http://localhost:8080/api/v1/challenges?limit=10&searchTerms=ehr" -H  "accept: application/json"
tschaffter commented 2 years ago

The app works fine when deploying it with the docker stack provided by rocc-app. Will now try to redeploy this stack on the test server.

tschaffter commented 2 years ago

I redeployed the app and seeded it again and now the free text search field works fine.