More Api support
Support end for docid