From the error com.mongodb.MongoCommandException I think you’re using the Java driver. Is this correct? It seems like a syntax issue, however could you please help me with the below details:
Sample document on which the search index has been applied.
With regard to the question, it’s usually best to work with the actual document example to ensure that all our assumptions are correct. In the absence of an example of an actual document, I’m basing my answer on the code you provided. The queryString operator is used for string values and not date-time values. Also, : in queryString denotes <field-to-search>: (<search-values>, which is why it is giving you an error. Could you confirm that you’re searching for two DateTime values and not the actual string "11:20:58" OR "11:30"?