rest: document search method