With the below query I would like to modify the options so that I am only retrieving the values. The query returns the path, the relevance as well as values. I just need the values so I can edit it for reporting purposes. Can I get some insight on how to accomplish this task? I am also using the Javascript API within Marklogic 8.
results = jsearch.documentSelect(cts.search($error_details),
{namespaces: {//emf:namespace is declared here},
extract: {paths: ['//emf:properties/emf:property[@key = "filename"]/.',
'//emf:properties/emf:property[@key = "idnumber"]/.',
'//emf:properties/emf:property[@key = "error description"]/.',
'//emf:properties/emf:property[@key = "error code"]/.']}
}).toString();
The query
cts.andQuery([
cts.elementRangeQuery(fn.QName('uri','creation-time'), ">=", $startDate),
cts.elementRangeQuery(fn.QName('uri','creation-time'), "<", $endDate),
cts.elementValueQuery(fn.QName('uri','component-name'), "InvalidFiles" ),
cts.elementValueQuery(fn.QName('uri','category'), "error")
])