I need to search using rest api and the search should return me only the document not the usual search result. Basically, I'm going to search for a json document with the property name.
For eg:
{
"envelope": {
"metadata": {
"documentType": "Marklogic Batch Audit",
"documentVersion": "1.0",
"domain": "WDS",
"ingestDateTime": "3/19/2019, 4:19:23 AM",
"ingestSourceSystem": "WDS",
"ingestSourceSystemVersion": "1.0",
"ingestUser": "admin",
"moduleVersion": "1.0"
},
"content": {
"GUID": "Unique ID",
"scheduleName": "WDS-ML-Daily",
"scheduleDescripton": "This is daily Marklogic WDS batch",
"orderDate": "03072019",
"scheduleStartTimestamp": "3/19/2019, 4:19:23 AM",
"scheduleEndTimestamp": "",
"scheduleStatus": "running"
}
}
}
I want to search using json property "scheduleName". When i pass "WDS-ML-Daily", my search should return this doucument.
I also want the search to be in specific collection.
How can I do this?