Marc Kupietz | c616098 | 2025-06-24 15:57:51 +0200 | [diff] [blame] | 1 | % Generated by roxygen2: do not edit by hand |
| 2 | % Please edit documentation in R/KorAPQuery.R |
| 3 | \name{fetchNext,KorAPQuery-method} |
| 4 | \alias{fetchNext,KorAPQuery-method} |
| 5 | \alias{fetchNext} |
| 6 | \title{Fetch the next bunch of results of a KorAP query.} |
| 7 | \usage{ |
| 8 | \S4method{fetchNext}{KorAPQuery}( |
| 9 | kqo, |
| 10 | offset = kqo@nextStartIndex, |
| 11 | maxFetch = maxResultsPerPage, |
| 12 | verbose = kqo@korapConnection@verbose, |
| 13 | randomizePageOrder = FALSE |
| 14 | ) |
| 15 | } |
| 16 | \arguments{ |
| 17 | \item{kqo}{object obtained from \code{\link[=corpusQuery]{corpusQuery()}}} |
| 18 | |
| 19 | \item{offset}{start offset for query results to fetch} |
| 20 | |
| 21 | \item{maxFetch}{maximum number of query results to fetch} |
| 22 | |
| 23 | \item{verbose}{print progress information if true} |
| 24 | |
| 25 | \item{randomizePageOrder}{fetch result pages in pseudo random order if true. Use \code{\link[=set.seed]{set.seed()}} to set seed for reproducible results.} |
| 26 | } |
| 27 | \value{ |
| 28 | The \code{kqo} input object with updated slots \code{collectedMatches}, \code{apiResponse}, \code{nextStartIndex}, \code{hasMoreMatches} |
| 29 | } |
| 30 | \description{ |
| 31 | \strong{\code{fetchNext}} fetches the next bunch of results of a KorAP query. |
| 32 | } |
| 33 | \examples{ |
| 34 | \dontrun{ |
| 35 | |
| 36 | q <- KorAPConnection() \%>\% |
| 37 | corpusQuery("Ameisenplage") \%>\% |
| 38 | fetchNext() |
| 39 | q@collectedMatches |
| 40 | } |
| 41 | |
| 42 | } |
| 43 | \references{ |
| 44 | \url{https://ids-pub.bsz-bw.de/frontdoor/index/index/docId/9026} |
| 45 | } |
| 46 | \seealso{ |
| 47 | Other corpus search functions: |
| 48 | \code{\link{corpusQuery,KorAPConnection-method}}, |
| 49 | \code{\link{fetchAll,KorAPQuery-method}} |
| 50 | } |
| 51 | \concept{corpus search functions} |