package com.marklogic.client;

import com.marklogic.client.config.search.QueryDefinition;
import com.marklogic.client.config.search.SearchResults;
import com.marklogic.client.config.search.StringQueryDefinition;
import com.marklogic.client.docio.XMLReadHandle;

public interface QueryManager {
    // constants that can be used as values for pagination
    static final public long DEFAULT_PAGE_LENGTH = 10;
    static final public long START = 1;

    public StringQueryDefinition newStringCriteria(String optionsUri);

    public SearchResults search(QueryDefinition criteria);

    public <T extends XMLReadHandle> T searchAsXml(T handle, QueryDefinition criteria);
}

package com.marklogic.client;

import com.marklogic.client.config.search.QueryDefinition;
import com.marklogic.client.config.search.SearchResults;
import com.marklogic.client.config.search.StringQueryDefinition;
import com.marklogic.client.io.marker.XMLReadHandle;

public interface QueryManager {
    // constants that can be used as values for pagination
    static final public long DEFAULT_PAGE_LENGTH = 10;
    static final public long START = 1;

    public StringQueryDefinition newStringCriteria(String optionsUri);

    public SearchResults search(QueryDefinition criteria);

    public <T extends XMLReadHandle> T searchAsXml(T handle, QueryDefinition criteria);
}

rename io marker package