Open rubenlop88 opened 4 years ago
It turns out, HAPI FHIR does support "full-text" search using the _content query param. The problem was that index files where not being persisted after a redeployment of the server. We could use a Docker volume or an Elasticsearch server to fix this.
The current _content query param still doesn't work as expected. It only matches full words, not partial ones. For example, it matches "Lopez" but not "Lop" or "Lo". Also, if the value of _content is "Lopez" it wont match resources that contain "López" with an accent.
I think those features can be configured in the FHIR server, or in an Elasticsearch used by the FHIR server.
According to the standard a FHIR implementation can implement "full-text" search using the _conent query param. Hapi FHIR doesn't work as expected. We should study the standard and Hapi FHIR more to provide the best solution we can.