Atlas search with mongodb with ObjectId is not working

here is the index defination not fetching any data with respect to user(ObjectId ) if I remove this it will fetch according to filter let me know how can we resolve this issue?

query:

{
  "mappings": {
    "dynamic": false,
    "fields": {
      "deleteStatus": [
        {
          "dynamic": true,
          "type": "document"
        },
        {
          "type": "boolean"
        }
      ],
      "name": [
        {
          "dynamic": true,
          "type": "document"
        },
        {
          "type": "autocomplete"
        }
      ],
      "number": [
        {
          "dynamic": true,
          "type": "document"
        },
        {
          "type": "autocomplete"
        }
      ],
      "user": {
        "type": "objectId"
      }
    }
  }
}
{
				"$search": {
				"index": "contactsearch",
				  "compound": {
					"filter": [{
						"equals": {
						  "value": false,
						  "path": "deleteStatus"
						  }
					  },
					  {
						"equals": {
						  "value":  MongoId(parentId),
						  "path": "user"
						  }
					  }]
}
}
}

Hi @Milan_Zadfiya - Welcome to the community.

not fetching any data with respect to user(ObjectId ) if I remove this it will fetch according to filter

Just to confirm, if you remove the following, the query works as expected?

{
	"equals": {
 	  "value":  MongoId(parentId),
	  "path": "user"	
    }
}

Additionally, can you provide 3-4 sample documents and the expected output with the user filter?

Regards,
Jason