Stream: hapi
Topic: Partial search with _content
Thomas (Sep 13 2019 at 13:01):
Hi !
I'm looking for a way to search, for a specific ressource type, all ressources containing a word (or partially specified) accross all parameters.
To do this, I'm currently using _content, and it works correctly for full word searches:
- [Base]/Patient?_content=joe&_content=34
Unfortunately, I also want to search for partial texts.
I've tried to add modifiers like : _content:contains but it doesn't work..
For example, I have 2 patients :
- Patient 1 :
- Name : joe
- Address : street 34
- Patient 2 :
- Name : Mike
- Address : jo street 156
If I type "jo", it should return patient 1 and 2
if I type "jo 34", it should only return patient 1
Thanks =)
Last updated: Apr 12 2022 at 19:14 UTC