marklogic / java-client-api

Java client for the MarkLogic enterprise NoSQL database
https://docs.marklogic.com/guide/java
Apache License 2.0
59 stars 72 forks source link

QueryView on bulk search is not working as expected. #84

Closed sravanr closed 4 years ago

sravanr commented 10 years ago

setSearchView(QueryView.METADATA); and look at the search handle and I always see the results instead of seeing only metadata.

I see both QueryManager search request and BulkSearch REST request are same and I feel this could be an issue with REST or my lack of understanding "GET /v1/search?category=content&q=bar&format=json&view=metadata& vs "GET /v1/search?q=bar&view=metadata HTTP/1.1[\r][\n]"

below is my test

public void loadJSONDocuments() throws JsonProcessingException, IOException{
        int count=1;     
        JSONDocumentManager docMgr = client.newJSONDocumentManager();
        DocumentWriteSet writeset =docMgr.newWriteSet();

        HashMap<String,String> map= new HashMap<String,String>();

        for(int i =0;i<102;i++){
            JsonNode jn = new ObjectMapper().readTree("{\"animal\":\"dog"+i+"\", \"says\":\"woof\"}");
            JacksonHandle jh = new JacksonHandle();
            jh.set(jn);
            writeset.add(DIRECTORY+"dog"+i+".json",jh);
            map.put(DIRECTORY+"dog"+i+".json", jn.toString());
            if(count%BATCH_SIZE == 0){
                docMgr.write(writeset);
                writeset = docMgr.newWriteSet();
            }
            count++;
            //        System.out.println(jn.toString());
        }
        if(count%BATCH_SIZE > 0){
            docMgr.write(writeset);
        }
    }
public void loadTxtDocuments(){
        int count =1;
        TextDocumentManager docMgr = client.newTextDocumentManager();
        DocumentWriteSet writeset =docMgr.newWriteSet();
        for(int i =0;i<101;i++){
            writeset.add(DIRECTORY+"Textfoo"+i+".txt", new StringHandle().with("bar can be foo"+i));
            if(count%BATCH_SIZE == 0){
                docMgr.write(writeset);
                writeset = docMgr.newWriteSet();
            }
            count++;
        }
        if(count%BATCH_SIZE > 0){
            docMgr.write(writeset);
        }
    }
@Test
    public void testBulkSearchSQDwithJSONResponseFormat() throws Exception{
        int count =1;
        loadTxtDocuments();
        loadJSONDocuments();
        TextDocumentManager docMgr = client.newTextDocumentManager();

        QueryManager queryMgr = client.newQueryManager();
        StringQueryDefinition qd = queryMgr.newStringDefinition();
        qd.setCriteria("bar");

        docMgr.setResponseFormat(Format.JSON);
        docMgr.setSearchView(QueryView.METADATA);
    //  docMgr.setMetadataCategories(Metadata.PERMISSIONS);
        JacksonHandle jh = new JacksonHandle();
        DocumentPage page= docMgr.search(qd, 1,jh);
        System.out.println(jh.get().toString());
        queryMgr.setView(QueryView.METADATA);
        queryMgr.search(qd, jh);
        System.out.println(jh.get().toString());

        }

output: 
TextDocumentManger set the QueryView to metadata i see the following
{"snippet-format":"snippet","total":101,"start":1,"page-length":50,"results":[{"index":1,"uri":"/bulkSearch/Textfoo66.txt","path":"fn:doc(\"/bulkSearch/Textfoo66.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo66.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo66.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo66"]}]},{"index":2,"uri":"/bulkSearch/Textfoo70.txt","path":"fn:doc(\"/bulkSearch/Textfoo70.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo70.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo70.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo70"]}]},{"index":3,"uri":"/bulkSearch/Textfoo29.txt","path":"fn:doc(\"/bulkSearch/Textfoo29.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo29.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo29.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo29"]}]},{"index":4,"uri":"/bulkSearch/Textfoo33.txt","path":"fn:doc(\"/bulkSearch/Textfoo33.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo33.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo33.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo33"]}]},{"index":5,"uri":"/bulkSearch/Textfoo68.txt","path":"fn:doc(\"/bulkSearch/Textfoo68.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo68.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo68.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo68"]}]},{"index":6,"uri":"/bulkSearch/Textfoo72.txt","path":"fn:doc(\"/bulkSearch/Textfoo72.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo72.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo72.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo72"]}]},{"index":7,"uri":"/bulkSearch/Textfoo35.txt","path":"fn:doc(\"/bulkSearch/Textfoo35.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo35.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo35.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo35"]}]},{"index":8,"uri":"/bulkSearch/Textfoo74.txt","path":"fn:doc(\"/bulkSearch/Textfoo74.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo74.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo74.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo74"]}]},{"index":9,"uri":"/bulkSearch/Textfoo37.txt","path":"fn:doc(\"/bulkSearch/Textfoo37.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo37.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo37.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo37"]}]},{"index":10,"uri":"/bulkSearch/Textfoo41.txt","path":"fn:doc(\"/bulkSearch/Textfoo41.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo41.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo41.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo41"]}]},{"index":11,"uri":"/bulkSearch/Textfoo76.txt","path":"fn:doc(\"/bulkSearch/Textfoo76.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo76.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo76.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo76"]}]},{"index":12,"uri":"/bulkSearch/Textfoo80.txt","path":"fn:doc(\"/bulkSearch/Textfoo80.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo80.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo80.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo80"]}]},{"index":13,"uri":"/bulkSearch/Textfoo39.txt","path":"fn:doc(\"/bulkSearch/Textfoo39.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo39.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo39.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo39"]}]},{"index":14,"uri":"/bulkSearch/Textfoo43.txt","path":"fn:doc(\"/bulkSearch/Textfoo43.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo43.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo43.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo43"]}]},{"index":15,"uri":"/bulkSearch/Textfoo1.txt","path":"fn:doc(\"/bulkSearch/Textfoo1.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo1.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo1.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo1"]}]},{"index":16,"uri":"/bulkSearch/Textfoo78.txt","path":"fn:doc(\"/bulkSearch/Textfoo78.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo78.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo78.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo78"]}]},{"index":17,"uri":"/bulkSearch/Textfoo82.txt","path":"fn:doc(\"/bulkSearch/Textfoo82.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo82.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo82.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo82"]}]},{"index":18,"uri":"/bulkSearch/Textfoo10.txt","path":"fn:doc(\"/bulkSearch/Textfoo10.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo10.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo10.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo10"]}]},{"index":19,"uri":"/bulkSearch/Textfoo45.txt","path":"fn:doc(\"/bulkSearch/Textfoo45.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo45.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo45.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo45"]}]},{"index":20,"uri":"/bulkSearch/Textfoo3.txt","path":"fn:doc(\"/bulkSearch/Textfoo3.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo3.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo3.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo3"]}]},{"index":21,"uri":"/bulkSearch/Textfoo84.txt","path":"fn:doc(\"/bulkSearch/Textfoo84.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo84.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo84.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo84"]}]},{"index":22,"uri":"/bulkSearch/Textfoo12.txt","path":"fn:doc(\"/bulkSearch/Textfoo12.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo12.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo12.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo12"]}]},{"index":23,"uri":"/bulkSearch/Textfoo47.txt","path":"fn:doc(\"/bulkSearch/Textfoo47.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo47.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo47.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo47"]}]},{"index":24,"uri":"/bulkSearch/Textfoo51.txt","path":"fn:doc(\"/bulkSearch/Textfoo51.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo51.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo51.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo51"]}]},{"index":25,"uri":"/bulkSearch/Textfoo5.txt","path":"fn:doc(\"/bulkSearch/Textfoo5.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo5.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo5.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo5"]}]},{"index":26,"uri":"/bulkSearch/Textfoo86.txt","path":"fn:doc(\"/bulkSearch/Textfoo86.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo86.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo86.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo86"]}]},{"index":27,"uri":"/bulkSearch/Textfoo90.txt","path":"fn:doc(\"/bulkSearch/Textfoo90.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo90.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo90.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo90"]}]},{"index":28,"uri":"/bulkSearch/Textfoo14.txt","path":"fn:doc(\"/bulkSearch/Textfoo14.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo14.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo14.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo14"]}]},{"index":29,"uri":"/bulkSearch/Textfoo49.txt","path":"fn:doc(\"/bulkSearch/Textfoo49.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo49.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo49.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo49"]}]},{"index":30,"uri":"/bulkSearch/Textfoo53.txt","path":"fn:doc(\"/bulkSearch/Textfoo53.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo53.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo53.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo53"]}]},{"index":31,"uri":"/bulkSearch/Textfoo7.txt","path":"fn:doc(\"/bulkSearch/Textfoo7.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo7.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo7.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo7"]}]},{"index":32,"uri":"/bulkSearch/Textfoo88.txt","path":"fn:doc(\"/bulkSearch/Textfoo88.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo88.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo88.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo88"]}]},{"index":33,"uri":"/bulkSearch/Textfoo100.txt","path":"fn:doc(\"/bulkSearch/Textfoo100.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo100.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo100.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo100"]}]},{"index":34,"uri":"/bulkSearch/Textfoo92.txt","path":"fn:doc(\"/bulkSearch/Textfoo92.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo92.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo92.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo92"]}]},{"index":35,"uri":"/bulkSearch/Textfoo16.txt","path":"fn:doc(\"/bulkSearch/Textfoo16.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo16.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo16.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo16"]}]},{"index":36,"uri":"/bulkSearch/Textfoo20.txt","path":"fn:doc(\"/bulkSearch/Textfoo20.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo20.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo20.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo20"]}]},{"index":37,"uri":"/bulkSearch/Textfoo55.txt","path":"fn:doc(\"/bulkSearch/Textfoo55.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo55.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo55.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo55"]}]},{"index":38,"uri":"/bulkSearch/Textfoo9.txt","path":"fn:doc(\"/bulkSearch/Textfoo9.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo9.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo9.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo9"]}]},{"index":39,"uri":"/bulkSearch/Textfoo94.txt","path":"fn:doc(\"/bulkSearch/Textfoo94.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo94.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo94.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo94"]}]},{"index":40,"uri":"/bulkSearch/Textfoo18.txt","path":"fn:doc(\"/bulkSearch/Textfoo18.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo18.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo18.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo18"]}]},{"index":41,"uri":"/bulkSearch/Textfoo22.txt","path":"fn:doc(\"/bulkSearch/Textfoo22.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo22.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo22.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo22"]}]},{"index":42,"uri":"/bulkSearch/Textfoo57.txt","path":"fn:doc(\"/bulkSearch/Textfoo57.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo57.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo57.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo57"]}]},{"index":43,"uri":"/bulkSearch/Textfoo61.txt","path":"fn:doc(\"/bulkSearch/Textfoo61.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo61.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo61.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo61"]}]},{"index":44,"uri":"/bulkSearch/Textfoo96.txt","path":"fn:doc(\"/bulkSearch/Textfoo96.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo96.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo96.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo96"]}]},{"index":45,"uri":"/bulkSearch/Textfoo24.txt","path":"fn:doc(\"/bulkSearch/Textfoo24.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo24.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo24.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo24"]}]},{"index":46,"uri":"/bulkSearch/Textfoo59.txt","path":"fn:doc(\"/bulkSearch/Textfoo59.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo59.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo59.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo59"]}]},{"index":47,"uri":"/bulkSearch/Textfoo63.txt","path":"fn:doc(\"/bulkSearch/Textfoo63.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo63.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo63.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo63"]}]},{"index":48,"uri":"/bulkSearch/Textfoo98.txt","path":"fn:doc(\"/bulkSearch/Textfoo98.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo98.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo98.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo98"]}]},{"index":49,"uri":"/bulkSearch/Textfoo26.txt","path":"fn:doc(\"/bulkSearch/Textfoo26.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo26.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo26.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo26"]}]},{"index":50,"uri":"/bulkSearch/Textfoo30.txt","path":"fn:doc(\"/bulkSearch/Textfoo30.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo30.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo30.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo30"]}]}],"qtext":"bar","metrics":{"snippet-resolution-time":"PT0.021S","total-time":"PT0.043S"}}

when QueryManager view is set to metadata I see :
{"snippet-format":"snippet","total":101,"start":1,"page-length":10,"qtext":"bar","metrics":{"snippet-resolution-time":"PT0S","total-time":"PT0.004S"}}

Here is the HTTP wire   
[DEBUG] wire - >> "GET /v1/search?category=content&q=bar&format=json&view=metadata&pageLength=50 HTTP/1.1[\r][\n]"
[DEBUG] wire - >> "Content-Type: application/xml[\r][\n]"
[DEBUG] wire - >> "Accept: multipart/mixed[\r][\n]"
[DEBUG] wire - >> "Host: localhost:8011[\r][\n]"
[DEBUG] wire - >> "Connection: Keep-Alive[\r][\n]"
[DEBUG] wire - >> "[\r][\n]"
[DEBUG] wire - << "HTTP/1.1 401 Unauthorized[\r][\n]"
[DEBUG] wire - << "WWW-Authenticate: Digest realm="public", qop="auth", nonce="a4fbadc316392d2f80a26f18c68e0025", opaque="e2dc45331b949fe7"[\r][\n]"
[DEBUG] wire - << "Content-type: application/json[\r][\n]"
[DEBUG] wire - << "Server: MarkLogic[\r][\n]"
[DEBUG] wire - << "Content-Length: 103[\r][\n]"
[DEBUG] wire - << "Connection: Keep-Alive[\r][\n]"
[DEBUG] wire - << "Keep-Alive: timeout=5[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "{"error":{"status-code":"401", "status":"Failed Auth", "message-code":"", "message":"Unauthenticated"}}"
[DEBUG] wire - >> "GET /v1/search?category=content&q=bar&format=json&view=metadata&pageLength=50 HTTP/1.1[\r][\n]"
[DEBUG] wire - >> "Content-Type: application/xml[\r][\n]"
[DEBUG] wire - >> "Accept: multipart/mixed[\r][\n]"
[DEBUG] wire - >> "Authorization: Digest username="usr1",realm="public",nonce="a4fbadc316392d2f80a26f18c68e0025",opaque="e2dc45331b949fe7",qop=auth,uri="/v1/search",cnonce="6da553a0",nc=00000001,response="7b8785275b9421ef08cf70f5d2cfa918"[\r][\n]"
[DEBUG] wire - >> "Host: localhost:8011[\r][\n]"
[DEBUG] wire - >> "Connection: Keep-Alive[\r][\n]"
[DEBUG] wire - >> "[\r][\n]"
[DEBUG] wire - << "HTTP/1.1 200 OK[\r][\n]"
[DEBUG] wire - << "Content-type: multipart/mixed; boundary=ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "vnd.marklogic.start: 1[\r][\n]"
[DEBUG] wire - << "vnd.marklogic.pageLength: 50[\r][\n]"
[DEBUG] wire - << "vnd.marklogic.result-estimate: 101[\r][\n]"
[DEBUG] wire - << "Server: MarkLogic[\r][\n]"
[DEBUG] wire - << "Content-Length: 28789[\r][\n]"
[DEBUG] wire - << "Connection: Keep-Alive[\r][\n]"
[DEBUG] wire - << "Keep-Alive: timeout=5[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: application/json[\r][\n]"
[DEBUG] wire - << "Content-Disposition: inline[\r][\n]"
[DEBUG] wire - << "Content-Length: 18487[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "{"snippet-format":"snippet","total":101,"start":1,"page-length":50,"results":[{"index":1,"uri":"/bulkSearch/Textfoo66.txt","path":"fn:doc(\"/bulkSearch/Textfoo66.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo66.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo66.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo66"]}]},{"index":2,"uri":"/bulkSearch/Textfoo70.txt","path":"fn:doc(\"/bulkSearch/Textfoo70.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo70.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo70.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo70"]}]},{"index":3,"uri":"/bulkSearch/Textfoo29.txt","path":"fn:doc(\"/bulkSearch/Textfoo29.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo29.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo29.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo29"]}]},{"index":4,"uri":"/bulkSearch/Textfoo33.txt","path":"fn:doc(\"/bulkSearch/Textfoo33.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo33.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo33.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo33"]}]},{"index":5,"uri":"/bulkSearch/Textfoo68.txt","path":"fn:doc(\"/bulkSearch/Textfoo68.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo68.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo68.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo68"]}]},{"index":6,"uri":"/bulkSearch/Textfoo72.txt","path":"fn:doc(\"/bulkSearch/Textfoo72.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo72.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo72.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo72"]}]},{"index":7,"uri":"/bulkSearch/Textfoo35.txt","path":"fn:doc(\"/bulkSearch/Textfoo35.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo35.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo35.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo35"]}]},{"index":8,"uri":"/bulkSearch/Textfoo74.txt","path":"fn:doc(\"/bulkSearch/Textfoo74.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo74.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo74.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo74"]}]},{"index":9,"uri":"/bulkSearch/Textfoo37.txt","path":"fn:doc(\"/bulkSearch/Textfoo37.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo37.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo37.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo37"]}]},{"index":10,"uri":"/bulkSearch/Textfoo41.txt","path":"fn:doc(\"/bulkSearch/Textfoo41.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo41.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo41.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo41"]}]},{"index":11,"uri":"/bulkSearch/Textfoo76.txt","path":"fn:doc(\"/bulkSearch/Textfoo76.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo76.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo76.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo76"]}]},{"index":12,"uri":"/bulkSearch/Textfoo80.txt","path":"fn:doc(\"/bulkSearch/Textfoo80.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo80.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo80.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo80"]}]},{"index":13,"uri":"/bulkSearch/Textfoo39.txt","path":"fn:doc(\"/bulkSearch/Textfoo39.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo39.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo39.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo39"]}]},{"index":14,"uri":"/bulkSearch/Textfoo43.txt","path":"fn:doc(\"/bulkSearch/Textfoo43.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo43.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo43.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo43"]}]},{"index":15,"uri":"/bulkSearch/Textfoo1.txt","path":"fn:doc(\"/bulkSearch/Textfoo1.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo1.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo1.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo1"]}]},{"index":16,"uri":"/bulkSearch/Textfoo78.txt","path":"fn:doc(\"/bulkSearch/Textfoo78.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo78.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo78.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo78"]}]},{"index":17,"uri":"/bulkSearch/Textfoo82.txt","path":"fn:doc(\"/bulkSearch/Textfoo82.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo82.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo82.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo82"]}]},{"index":18,"uri":"/bulkSearch/Textfoo10.txt","path":"fn:doc(\"/bulkSearch/Textfoo10.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo10.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo10.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo10"]}]},{"index":19,"uri":"/bulkSearch/Textfoo45.txt","path":"fn:doc(\"/bulkSearch/Textfoo45.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo45.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo45.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo45"]}]},{"index":20,"uri":"/bulkSearch/Textfoo3.txt","path":"fn:doc(\"/bulkSearch/Textfoo3.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo3.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo3.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo3"]}]},{"index":21,"uri":"/bulkSearch/Textfoo84.txt","path":"fn:doc(\"/bulkSearch/Textfoo84.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo84.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo84.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo84"]}]},{"index":22,"uri":"/bulkSearch/Tex"
[DEBUG] wire - << "tfoo12.txt","path":"fn:doc(\"/bulkSearch/Textfoo12.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo12.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo12.txt\")/"
[DEBUG] wire - << "text()","match-text":[{"highlight":"bar"}," can be foo12"]}]},{"index":23,"uri":"/bulkSearch/Textfoo47.txt","path":"fn:doc(\"/bulkSearch/Textfoo47.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo47.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo47.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo47"]}]},{"index":24,"uri":"/bulkSearch/Textfoo51.txt","path":"fn:doc(\"/bulkSearch/Textfoo51.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo51.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo51.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo51"]}]},{"index":25,"uri":"/bulkSearch/Textfoo5.txt","path":"fn:doc(\"/bulkSearch/Textfoo5.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo5.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo5.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo5"]}]},{"index":26,"uri":"/bulkSearch/Textfoo86.txt","path":"fn:doc(\"/bulkSearch/Textfoo86.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo86.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo86.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo86"]}]},{"index":27,"uri":"/bulkSearch/Textfoo90.txt","path":"fn:doc(\"/bulkSearch/Textfoo90.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo90.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo90.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo90"]}]},{"index":28,"uri":"/bulkSearch/Textfoo14.txt","path":"fn:doc(\"/bulkSearch/Textfoo14.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo14.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo14.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo14"]}]},{"index":29,"uri":"/bulkSearch/Textfoo49.txt","path":"fn:doc(\"/bulkSearch/Textfoo49.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo49.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo49.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo49"]}]},{"index":30,"uri":"/bulkSearch/Textfoo53.txt","path":"fn:doc(\"/bulkSearch/Textfoo53.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo53.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo53.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo53"]}]},{"index":31,"uri":"/bulkSearch/Textfoo7.txt","path":"fn:doc(\"/bulkSearch/Textfoo7.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo7.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo7.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo7"]}]},{"index":32,"uri":"/bulkSearch/Textfoo88.txt","path":"fn:doc(\"/bulkSearch/Textfoo88.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo88.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo88.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo88"]}]},{"index":33,"uri":"/bulkSearch/Textfoo100.txt","path":"fn:doc(\"/bulkSearch/Textfoo100.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo100.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo100.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo100"]}]},{"index":34,"uri":"/bulkSearch/Textfoo92.txt","path":"fn:doc(\"/bulkSearch/Textfoo92.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo92.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo92.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo92"]}]},{"index":35,"uri":"/bulkSearch/Textfoo16.txt","path":"fn:doc(\"/bulkSearch/Textfoo16.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo16.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo16.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo16"]}]},{"index":36,"uri":"/bulkSearch/Textfoo20.txt","path":"fn:doc(\"/bulkSearch/Textfoo20.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo20.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo20.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo20"]}]},{"index":37,"uri":"/bulkSearch/Textfoo55.txt","path":"fn:doc(\"/bulkSearch/Textfoo55.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo55.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo55.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo55"]}]},{"index":38,"uri":"/bulkSearch/Textfoo9.txt","path":"fn:doc(\"/bulkSearch/Textfoo9.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo9.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo9.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo9"]}]},{"index":39,"uri":"/bulkSearch/Textfoo94.txt","path":"fn:doc(\"/bulkSearch/Textfoo94.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo94.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo94.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo94"]}]},{"index":40,"uri":"/bulkSearch/Textfoo18.txt","path":"fn:doc(\"/bulkSearch/Textfoo18.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo18.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo18.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo18"]}]},{"index":41,"uri":"/bulkSearch/Textfoo22.txt","path":"fn:doc(\"/bulkSearch/Textfoo22.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo22.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo22.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo22"]}]},{"index":42,"uri":"/bulkSearch/Textfoo57.txt","path":"fn:doc(\"/bulkSearch/Textfoo57.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo57.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo57.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo57"]}]},{"index":43,"uri":"/bulkSearch/Textfoo61.txt","path":"fn:doc(\"/bulkSearch/Textfoo61.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo61.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo61.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo61"]}]},{"index":44,"uri":"/bulkSearch/Textfoo96.txt","path":"fn:doc(\"/bulkSearch/Textfoo96.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/"
[DEBUG] wire - << "documents?uri=%2FbulkSearch%2FTextfoo96.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo96.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo96"]}]},{"index":45,"uri":"/bulkSearch/Textfoo24.txt","path":"fn:doc(\"/bulkSearch/Textfoo24.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo24.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo24.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo24"]}]},{"index":46,"uri":"/bulkSearch/Textfoo59.txt","path":"fn:doc(\"/bulkSearch/Textfoo59.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo59.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo59.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo59"]}]},{"index":47,"uri":"/bulkSearch/Textfoo63.txt","path":"fn:doc(\"/bulkSearch/Textfoo63.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo63.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo63.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo63"]}]},{"index":48,"uri":"/bulkSearch/Textfoo98.txt","path":"fn:doc(\"/bulkSearch/Textfoo98.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo98.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo98.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo98"]}]},{"index":49,"uri":"/bulkSearch/Textfoo26.txt","path":"fn:doc(\"/bulkSearch/Textfoo26.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo26.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo26.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo26"]}]},{"index":50,"uri":"/bulkSearch/Textfoo30.txt","path":"fn:doc(\"/bulkSearch/Textfoo30.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo30.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo30.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo30"]}]}],"qtext":"bar","metrics":{"snippet-resolution-time":"PT0.021S","total-time":"PT0.043S"}}[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo66.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo66[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo70.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo70[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo29.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo29[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo33.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo33[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo68.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo68[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo72.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo72[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo35.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo35[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo74.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo74[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo37.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo37[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo41.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo41[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo76.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo76[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo80.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo80[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo39.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo39[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo43.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo43[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo1.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 15[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo1[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo78.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo78[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo82.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo82[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo10.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo10[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo45.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo45[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo3.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 15[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo3[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo84.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo84[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo12.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo12[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo47.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo47[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo51.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo51[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo5.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 15[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo5[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo86.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo86[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo90.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo90[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo14.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo14[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_433"
[DEBUG] wire - << "6719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo49.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo49[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo53.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo53[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo7.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 15[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo7[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo88.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo88[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo100.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 17[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo100[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo92.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo92[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo16.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo16[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo20.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo20[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo55.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo55[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo9.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 15[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo9[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo94.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo94[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo18.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo18[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo22.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo22[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo57.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo57[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo61.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo61[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo96.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo96[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo24.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo24[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo59.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo59[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo63.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo63[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo98.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo98[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo26.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo26[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411[\r][\n]"
[DEBUG] wire - << "Content-Type: text/plain[\r][\n]"
[DEBUG] wire - << "Content-Disposition: attachment; filename="/bulkSearch/Textfoo30.txt"; category=content; format=text[\r][\n]"
[DEBUG] wire - << "Content-Length: 16[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "bar can be foo30[\r][\n]"
[DEBUG] wire - << "--ML_BOUNDARY_4336719707370470411--[\r][\n]"
{"snippet-format":"snippet","total":101,"start":1,"page-length":50,"results":[{"index":1,"uri":"/bulkSearch/Textfoo66.txt","path":"fn:doc(\"/bulkSearch/Textfoo66.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo66.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo66.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo66"]}]},{"index":2,"uri":"/bulkSearch/Textfoo70.txt","path":"fn:doc(\"/bulkSearch/Textfoo70.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo70.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo70.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo70"]}]},{"index":3,"uri":"/bulkSearch/Textfoo29.txt","path":"fn:doc(\"/bulkSearch/Textfoo29.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo29.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo29.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo29"]}]},{"index":4,"uri":"/bulkSearch/Textfoo33.txt","path":"fn:doc(\"/bulkSearch/Textfoo33.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo33.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo33.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo33"]}]},{"index":5,"uri":"/bulkSearch/Textfoo68.txt","path":"fn:doc(\"/bulkSearch/Textfoo68.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo68.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo68.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo68"]}]},{"index":6,"uri":"/bulkSearch/Textfoo72.txt","path":"fn:doc(\"/bulkSearch/Textfoo72.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo72.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo72.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo72"]}]},{"index":7,"uri":"/bulkSearch/Textfoo35.txt","path":"fn:doc(\"/bulkSearch/Textfoo35.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo35.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo35.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo35"]}]},{"index":8,"uri":"/bulkSearch/Textfoo74.txt","path":"fn:doc(\"/bulkSearch/Textfoo74.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo74.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo74.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo74"]}]},{"index":9,"uri":"/bulkSearch/Textfoo37.txt","path":"fn:doc(\"/bulkSearch/Textfoo37.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo37.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo37.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo37"]}]},{"index":10,"uri":"/bulkSearch/Textfoo41.txt","path":"fn:doc(\"/bulkSearch/Textfoo41.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo41.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo41.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo41"]}]},{"index":11,"uri":"/bulkSearch/Textfoo76.txt","path":"fn:doc(\"/bulkSearch/Textfoo76.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo76.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo76.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo76"]}]},{"index":12,"uri":"/bulkSearch/Textfoo80.txt","path":"fn:doc(\"/bulkSearch/Textfoo80.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo80.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo80.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo80"]}]},{"index":13,"uri":"/bulkSearch/Textfoo39.txt","path":"fn:doc(\"/bulkSearch/Textfoo39.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo39.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo39.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo39"]}]},{"index":14,"uri":"/bulkSearch/Textfoo43.txt","path":"fn:doc(\"/bulkSearch/Textfoo43.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo43.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo43.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo43"]}]},{"index":15,"uri":"/bulkSearch/Textfoo1.txt","path":"fn:doc(\"/bulkSearch/Textfoo1.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo1.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo1.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo1"]}]},{"index":16,"uri":"/bulkSearch/Textfoo78.txt","path":"fn:doc(\"/bulkSearch/Textfoo78.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo78.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo78.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo78"]}]},{"index":17,"uri":"/bulkSearch/Textfoo82.txt","path":"fn:doc(\"/bulkSearch/Textfoo82.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo82.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo82.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo82"]}]},{"index":18,"uri":"/bulkSearch/Textfoo10.txt","path":"fn:doc(\"/bulkSearch/Textfoo10.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo10.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo10.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo10"]}]},{"index":19,"uri":"/bulkSearch/Textfoo45.txt","path":"fn:doc(\"/bulkSearch/Textfoo45.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo45.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo45.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo45"]}]},{"index":20,"uri":"/bulkSearch/Textfoo3.txt","path":"fn:doc(\"/bulkSearch/Textfoo3.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo3.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo3.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo3"]}]},{"index":21,"uri":"/bulkSearch/Textfoo84.txt","path":"fn:doc(\"/bulkSearch/Textfoo84.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo84.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo84.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo84"]}]},{"index":22,"uri":"/bulkSearch/Textfoo12.txt","path":"fn:doc(\"/bulkSearch/Textfoo12.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo12.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo12.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo12"]}]},{"index":23,"uri":"/bulkSearch/Textfoo47.txt","path":"fn:doc(\"/bulkSearch/Textfoo47.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo47.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo47.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo47"]}]},{"index":24,"uri":"/bulkSearch/Textfoo51.txt","path":"fn:doc(\"/bulkSearch/Textfoo51.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo51.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo51.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo51"]}]},{"index":25,"uri":"/bulkSearch/Textfoo5.txt","path":"fn:doc(\"/bulkSearch/Textfoo5.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo5.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo5.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo5"]}]},{"index":26,"uri":"/bulkSearch/Textfoo86.txt","path":"fn:doc(\"/bulkSearch/Textfoo86.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo86.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo86.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo86"]}]},{"index":27,"uri":"/bulkSearch/Textfoo90.txt","path":"fn:doc(\"/bulkSearch/Textfoo90.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo90.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo90.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo90"]}]},{"index":28,"uri":"/bulkSearch/Textfoo14.txt","path":"fn:doc(\"/bulkSearch/Textfoo14.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo14.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo14.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo14"]}]},{"index":29,"uri":"/bulkSearch/Textfoo49.txt","path":"fn:doc(\"/bulkSearch/Textfoo49.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo49.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo49.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo49"]}]},{"index":30,"uri":"/bulkSearch/Textfoo53.txt","path":"fn:doc(\"/bulkSearch/Textfoo53.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo53.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo53.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo53"]}]},{"index":31,"uri":"/bulkSearch/Textfoo7.txt","path":"fn:doc(\"/bulkSearch/Textfoo7.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo7.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo7.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo7"]}]},{"index":32,"uri":"/bulkSearch/Textfoo88.txt","path":"fn:doc(\"/bulkSearch/Textfoo88.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo88.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo88.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo88"]}]},{"index":33,"uri":"/bulkSearch/Textfoo100.txt","path":"fn:doc(\"/bulkSearch/Textfoo100.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo100.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo100.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo100"]}]},{"index":34,"uri":"/bulkSearch/Textfoo92.txt","path":"fn:doc(\"/bulkSearch/Textfoo92.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo92.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo92.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo92"]}]},{"index":35,"uri":"/bulkSearch/Textfoo16.txt","path":"fn:doc(\"/bulkSearch/Textfoo16.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo16.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo16.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo16"]}]},{"index":36,"uri":"/bulkSearch/Textfoo20.txt","path":"fn:doc(\"/bulkSearch/Textfoo20.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo20.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo20.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo20"]}]},{"index":37,"uri":"/bulkSearch/Textfoo55.txt","path":"fn:doc(\"/bulkSearch/Textfoo55.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo55.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo55.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo55"]}]},{"index":38,"uri":"/bulkSearch/Textfoo9.txt","path":"fn:doc(\"/bulkSearch/Textfoo9.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo9.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo9.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo9"]}]},{"index":39,"uri":"/bulkSearch/Textfoo94.txt","path":"fn:doc(\"/bulkSearch/Textfoo94.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo94.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo94.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo94"]}]},{"index":40,"uri":"/bulkSearch/Textfoo18.txt","path":"fn:doc(\"/bulkSearch/Textfoo18.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo18.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo18.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo18"]}]},{"index":41,"uri":"/bulkSearch/Textfoo22.txt","path":"fn:doc(\"/bulkSearch/Textfoo22.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo22.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo22.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo22"]}]},{"index":42,"uri":"/bulkSearch/Textfoo57.txt","path":"fn:doc(\"/bulkSearch/Textfoo57.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo57.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo57.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo57"]}]},{"index":43,"uri":"/bulkSearch/Textfoo61.txt","path":"fn:doc(\"/bulkSearch/Textfoo61.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo61.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo61.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo61"]}]},{"index":44,"uri":"/bulkSearch/Textfoo96.txt","path":"fn:doc(\"/bulkSearch/Textfoo96.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo96.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo96.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo96"]}]},{"index":45,"uri":"/bulkSearch/Textfoo24.txt","path":"fn:doc(\"/bulkSearch/Textfoo24.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo24.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo24.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo24"]}]},{"index":46,"uri":"/bulkSearch/Textfoo59.txt","path":"fn:doc(\"/bulkSearch/Textfoo59.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo59.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo59.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo59"]}]},{"index":47,"uri":"/bulkSearch/Textfoo63.txt","path":"fn:doc(\"/bulkSearch/Textfoo63.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo63.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo63.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo63"]}]},{"index":48,"uri":"/bulkSearch/Textfoo98.txt","path":"fn:doc(\"/bulkSearch/Textfoo98.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo98.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo98.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo98"]}]},{"index":49,"uri":"/bulkSearch/Textfoo26.txt","path":"fn:doc(\"/bulkSearch/Textfoo26.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo26.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo26.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo26"]}]},{"index":50,"uri":"/bulkSearch/Textfoo30.txt","path":"fn:doc(\"/bulkSearch/Textfoo30.txt\")","score":12288,"confidence":0.2047404,"fitness":0.7281211,"href":"/v1/documents?uri=%2FbulkSearch%2FTextfoo30.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/bulkSearch/Textfoo30.txt\")/text()","match-text":[{"highlight":"bar"}," can be foo30"]}]}],"qtext":"bar","metrics":{"snippet-resolution-time":"PT0.021S","total-time":"PT0.043S"}}
22:46:43.055 [main] DEBUG c.m.client.impl.JerseyServices - Searching for bar
[DEBUG] wire - >> "GET /v1/search?q=bar&view=metadata HTTP/1.1[\r][\n]"
[DEBUG] wire - >> "Content-Type: application/xml[\r][\n]"
[DEBUG] wire - >> "Accept: application/json[\r][\n]"
[DEBUG] wire - >> "Authorization: Digest username="usr1",realm="public",nonce="a4fbadc316392d2f80a26f18c68e0025",opaque="e2dc45331b949fe7",qop=auth,uri="/v1/search",cnonce="d1f27c68",nc=00000002,response="7b07b0773a89d4629d58f8afe57af28a"[\r][\n]"
[DEBUG] wire - >> "Host: localhost:8011[\r][\n]"
[DEBUG] wire - >> "Connection: Keep-Alive[\r][\n]"
[DEBUG] wire - >> "[\r][\n]"
[DEBUG] wire - << "HTTP/1.1 200 OK[\r][\n]"
[DEBUG] wire - << "Content-type: application/json; charset=utf-8[\r][\n]"
[DEBUG] wire - << "Server: MarkLogic[\r][\n]"
[DEBUG] wire - << "Content-Length: 150[\r][\n]"
[DEBUG] wire - << "Connection: Keep-Alive[\r][\n]"
[DEBUG] wire - << "Keep-Alive: timeout=5[\r][\n]"
[DEBUG] wire - << "[\r][\n]"
[DEBUG] wire - << "{"snippet-format":"snippet","total":101,"start":1,"page-length":10,"qtext":"bar","metrics":{"snippet-resolution-time":"PT0S","total-time":"PT0.004S"}}"
{"snippet-format":"snippet","total":101,"start":1,"page-length":10,"qtext":"bar","metrics":{"snippet-resolution-time":"PT0S","total-time":"PT0.004S"}}
Running clear script
22:46:43.086 [main] INFO  c.m.client.impl.DatabaseClientImpl - Releasing connection
22:46:43.087 [main] DEBUG c.m.client.impl.JerseyServices - Releasing connection
In tear down
sravanr commented 10 years ago

To keep my bug simple, I always see "results" object in search handle of bulk search.

sammefford commented 10 years ago

Erik, I'm assigning this one to you because it appears the error is in the REST API. Looking at the wire output, we're requesting GET /v1/search?category=content&q=bar&format=json&view=metadata&pageLength=50 yet we're getting results in the search payload, not just metadata as we would expect.

ehennum commented 10 years ago

Please try category=metdata instead of view=metadata (either with or without category=content)

sammefford commented 10 years ago

I'm wondering if we're talking about the same thing. I'm talking about an ability to retrieve only facets, or results, or metadata in the search payload. I thought category was about what to retrieve as bulk parts outside the search payload. In any case, how should you specify that you want only facets or results or metadata in the search payload? Strangely, I get the expected behavior when I don't match anything, but as soon as I match something I get results in the search payload every time. Match nothing with view=results behaves properly and has "results":[]:

curl --digest --user rest-writer:x -H "Content-Type: application/xml" -H "Accept: multipart/mixed" -X GET 'http://localhost:8012/v1/search?category=content&q=bar&format=json&view=results&pageLength=50'

Content-type: multipart/mixed; boundary=ML_BOUNDARY_5234745991537538125
vnd.marklogic.start: 1
vnd.marklogic.pageLength: 50
vnd.marklogic.result-estimate: 0
Server: MarkLogic
Content-Length: 353
Connection: Keep-Alive
Keep-Alive: timeout=5

--ML_BOUNDARY_5234745991537538125
Content-Type: application/json
Content-Disposition: inline
Content-Length: 195

{"snippet-format":"snippet","total":0,"start":1,"page-length":50,"results":[],"qtext":"bar","metrics":{"query-resolution-time":"PT0.02S","snippet-resolution-time":"PT0S","total-time":"PT0.021S"}}
--ML_BOUNDARY_5234745991537538125--

Match nothing with view=metadata behaves properly and has no "results":[]:

curl --digest --user rest-writer:x -H "Content-Type: application/xml" -H "Accept: multipart/mixed" -i -X GET 'http://localhost:8012/v1/search?category=content&q=bar&format=json&view=metadata&pageLength=50'

HTTP/1.1 200 OK
Content-type: multipart/mixed; boundary=ML_BOUNDARY_17646232257794988794
vnd.marklogic.start: 1
vnd.marklogic.pageLength: 50
vnd.marklogic.result-estimate: 0
Server: MarkLogic
Content-Length: 308
Connection: Keep-Alive
Keep-Alive: timeout=5

--ML_BOUNDARY_17646232257794988794
Content-Type: application/json
Content-Disposition: inline
Content-Length: 148

{"snippet-format":"snippet","total":0,"start":1,"page-length":50,"qtext":"bar","metrics":{"snippet-resolution-time":"PT0S","total-time":"PT0.022S"}}
--ML_BOUNDARY_17646232257794988794--

Match something with view=metadata does not behave properly and has a "results":[]:

curl --digest --user rest-writer:x -H "Content-Type: application/xml" -H "Accept: multipart/mixed" -i -X GET 'http://localhost:8012/v1/search?category=content&q=a&format=json&view=metadata&pageLength=50'

HTTP/1.1 200 OK
Content-type: multipart/mixed; boundary=ML_BOUNDARY_4020778783712915816
vnd.marklogic.start: 1
vnd.marklogic.pageLength: 50
vnd.marklogic.result-estimate: 6
Server: MarkLogic
Content-Length: 4093
Connection: Keep-Alive
Keep-Alive: timeout=5

--ML_BOUNDARY_4020778783712915816
Content-Type: application/json
Content-Disposition: inline
Content-Length: 2015

{"snippet-format":"snippet","total":6,"start":1,"page-length":50,"results":[{"index":1,"uri":"2.json","path":"fn:doc(\"2.json\")","score":59136,"confidence":0.44145,"fitness":0.8028674,"href":"/v1/documents?uri=2.json","mimetype":"application/json","format":"json","matches":[{"path":"fn:doc(\"2.json\")","match-text":[]}]},{"index":2,"uri":"4.json","path":"fn:doc(\"4.json\")","score":43008,"confidence":0.3764698,"fitness":0.6846876,"href":"/v1/documents?uri=4.json","mimetype":"application/json","format":"json","matches":[{"path":"fn:doc(\"4.json\")","match-text":[]}]},{"index":3,"uri":"/test/testWrite1.txt","path":"fn:doc(\"/test/testWrite1.txt\")","score":43008,"confidence":0.3764698,"fitness":0.6846876,"href":"/v1/documents?uri=%2Ftest%2FtestWrite1.txt","mimetype":"text/plain","format":"text","matches":[{"path":"fn:doc(\"/test/testWrite1.txt\")/text()","match-text":[{"highlight":"A"}," simple text document"]}]},{"index":4,"uri":"/test/testMetadataXML1.xml","path":"fn:doc(\"/test/testMetadataXML1.xml\")","score":43008,"confidence":0.3764698,"fitness":0.6846876,"href":"/v1/documents?uri=%2Ftest%2FtestMetadataXML1.xml","mimetype":"text/xml","format":"xml","matches":[{"path":"fn:doc(\"/test/testMetadataXML1.xml\")/root","match-text":["\n",{"highlight":"A"}," simple XML document\n"]}]},{"index":5,"uri":"1.json","path":"fn:doc(\"1.json\")","score":43008,"confidence":0.3764698,"fitness":0.6846876,"href":"/v1/documents?uri=1.json","mimetype":"application/json","format":"json","matches":[{"path":"fn:doc(\"1.json\")","match-text":[]}]},{"index":6,"uri":"/test/testMetadataXML2.xml","path":"fn:doc(\"/test/testMetadataXML2.xml\")","score":43008,"confidence":0.3764698,"fitness":0.6846876,"href":"/v1/documents?uri=%2Ftest%2FtestMetadataXML2.xml","mimetype":"text/xml","format":"xml","matches":[{"path":"fn:doc(\"/test/testMetadataXML2.xml\")/root","match-text":["\n",{"highlight":"A"}," simple XML document\n"]}]}],"qtext":"a","metrics":{"snippet-resolution-time":"PT0.014S","total-time":"PT0.03S"}}
--ML_BOUNDARY_4020778783712915816
Content-Type: application/json
Content-Disposition: attachment; filename="2.json"; category=content; format=json
Content-Length: 172

{"root":{"title":"The Bush article", "popularity":"4", "id":"0012", "date":"2006-02-02", "price":{"amt":"0.12"}, "p":"The Bush article described a device called a Memex."}}
--ML_BOUNDARY_4020778783712915816
Content-Type: application/json
Content-Disposition: attachment; filename="4.json"; category=content; format=json
Content-Length: 188

{"root":{"title":"Vannevar served", "popularity":"5", "id":"0024", "date":"2008-04-04", "price":{"amt":"12.34"}, "p":"Vannevar served as a prominent policymaker and public intellectual."}}
--ML_BOUNDARY_4020778783712915816
Content-Type: text/plain
Content-Disposition: attachment; filename="/test/testWrite1.txt"; category=content; format=text
Content-Length: 22

A simple text document
--ML_BOUNDARY_4020778783712915816
Content-Type: application/xml
Content-Disposition: attachment; filename="/test/testMetadataXML1.xml"; category=content; format=xml
Content-Length: 136

<?xml version="1.0" encoding="UTF-8"?>
<root mode="mixed" xml:lang="en">
<child mode="basic">value</child>
A simple XML document
</root>
--ML_BOUNDARY_4020778783712915816
Content-Type: application/json
Content-Disposition: attachment; filename="1.json"; category=content; format=json
Content-Length: 172

{"root":{"title":"Vannevar Bush", "popularity":"5", "id":"0011", "date":"2005-01-01", "price":{"amt":"0.1"}, "p":"Vannevar Bush wrote an article for The Atlantic Monthly"}}
--ML_BOUNDARY_4020778783712915816
Content-Type: application/xml
Content-Disposition: attachment; filename="/test/testMetadataXML2.xml"; category=content; format=xml
Content-Length: 136

<?xml version="1.0" encoding="UTF-8"?>
<root mode="mixed" xml:lang="en">
<child mode="basic">value</child>
A simple XML document
</root>
--ML_BOUNDARY_4020778783712915816--
ehennum commented 10 years ago

One question is whether the query options (either explicit or the default for the REST server) has return-results of false. If it does, the bulk request is buggy at the REST API level.

sammefford commented 10 years ago

Here is the content of /Default/java-unittest/rest-api/options/default.xml in java-unittest-modules (the db I'm testing against):

<?xml version="1.0" encoding="UTF-8"?>
<options xmlns="http://marklogic.com/appservices/search">
  <search-option>unfiltered</search-option>
  <quality-weight>0</quality-weight>
</options>
sammefford commented 10 years ago

Depends on a fix in the REST API (28819)

sammefford commented 10 years ago

28819 is fixed, so I believe this is fixed