Hi Spencer, I hadn’t seen https://www.make.com/en/integrations/mongodb before to be honest with you: super interesting that they ave search called out. It’s unclear to me if this is using mongodb’s legacy text search indexes or Atlas Search: do you have a relationship with the Make folks to push to get to the bottom of this? we’d be happy to help/reach out to them separately
Unfortunately, this is not actually a $search query. The good thing about the question the question, though, is that the reasonLost field suggests that this query is a good fit for Atlas Search and would likely be lightning fast. I’ve put some details on how to solve this problem with Atlas Search below.
It is possible to search by dates but you first need to create a search index with date type for inquiryDate and string for reasonLost. Then it will be relatively easy. As an FYI, $and becomes must in $search and $ne becomes mustNot in Atlas Search.
An index definition that would satisfy this query is: