When filtering with DSL if the filters that are being passed are empty then the results are empty. Could you please give some suggestions on how to ignore URL parameters that are not set.
Example:
@Query(value ="{$and:[{'country.name':{$eq:?0}},{'providerName':{$eq:?1}}]})"
The above query is working fine and the documents are returned. But if the positional filters are null then the result is empty. How to write a query that ignores the parameters if the value is not set.
Kind Regards, Ajay