Query to search multiple values in a single field with wildcard startswith condition

Diseases: “fever, headache, cold cough”
Diseases:” fever, infection”
Diseases:” fever,covid_19”

I want to find out the (diseases:” fever,covid_19”) with in a must with wildcard condition starts with.

I have tried with this

{ 'query': {'bool': {'filter': [{'bool': {'must': [{'wildcard': {'diseases': 'fev*'}}, {'wildcard': {'diseases': 'cov*'}}, {'range': {'visit_created_dttm': {'gte': '2020-06-23', 'lte': '2020-12-30'}}}}}

But it fails to recognize a particular result

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.