If query contains *word* then the document must contain *word*

Hi, I am trying to search on how to do the next thing: if my query contains a certain word, let's say "covid" then the documents returned must also contain "covid". Is there a way to do it directly in elasticsearch? The alternative would be to check with a python script and use a bool query (should or must) if necessary, but I would like to do it in elasticsearch.
Thanks

Welcome to our community! :smiley:

Have you seen the match query - Match query | Elasticsearch Guide [7.13] | Elastic - with minimum_should_match?

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