Use cursor to find documents