Only return defined fieldset.
@@ -267,7 +267,8 @@ public class OperationHandlerImpl implements OperationHandler {
}
VisitorParameters params = new VisitorParameters(selection.toString());
-
+ // Only return fieldset that is part of the document.
+ params.fieldSet("<" + restUri.getDocumentType() + ">:[document]");
params.setMaxBucketsPerVisitor(1);
params.setMaxPending(32);
params.setMaxFirstPassHits(1);
