debug: output offset and number in getSearchResult