-
Notifications
You must be signed in to change notification settings - Fork 74
Description
When I try to fetch just metadata or both content and metadata using a bulk read by URI, I get a MarkLogicInternalException telling me that "Metadata and content parts should always come in pairs!"
Exception in thread "main" com.marklogic.client.MarkLogicInternalException: Metadata and content parts should always come in pairs!
at com.marklogic.client.impl.JerseyServices.convertToDocumentPage(JerseyServices.java:730)
at com.marklogic.client.impl.JerseyServices.getBulkDocuments(JerseyServices.java:702)
at com.marklogic.client.impl.DocumentManagerImpl.read(DocumentManagerImpl.java:331)
at com.marklogic.client.impl.JSONDocumentImpl.read(JSONDocumentImpl.java:1)
at com.marklogic.client.impl.DocumentManagerImpl.read(DocumentManagerImpl.java:313)
at com.marklogic.client.impl.JSONDocumentImpl.read(JSONDocumentImpl.java:1)
at examples.ReadExamples.example2(ReadExamples.java:47)
at examples.ReadExamples.main(ReadExamples.java:60)
I'll paste my example function in the next comment, but I was basically attempting to do the moral equivalent of this REST request:
curl --anyauth --user admin:adm1n -X GET 'http://localhost:8003/v1/documents?uri=doc1.json&uri=doc2.json&uri=doc3.json&category=quality'
I tried with and without also fetching content. I tried both a JSON and an XML DocumentManager. All give the same result.