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{fetchAll,KorAPQuery-method} |
| 4 | \alias{fetchAll,KorAPQuery-method} |
| 5 | \alias{fetchAll} |
| 6 | \title{Fetch all results of a KorAP query.} |
| 7 | \usage{ |
| 8 | \S4method{fetchAll}{KorAPQuery}(kqo, verbose = kqo@korapConnection@verbose, ...) |
| 9 | } |
| 10 | \description{ |
| 11 | \strong{\code{fetchAll}} fetches all results of a KorAP query. |
| 12 | } |
| 13 | \examples{ |
| 14 | \dontrun{ |
| 15 | # Fetch all metadata of every query hit for "Ameisenplage" and show a summary |
| 16 | q <- KorAPConnection() |> |
| 17 | corpusQuery("Ameisenplage") |> |
| 18 | fetchAll() |
| 19 | q@collectedMatches |
| 20 | |
| 21 | # Fetch also all KWICs |
| 22 | q <- KorAPConnection() |> auth() |> |
| 23 | corpusQuery("Ameisenplage", metadataOnly = FALSE) |> |
| 24 | fetchAll() |
| 25 | q@collectedMatches |
| 26 | |
| 27 | # Retrieve title and text sigle metadata of all texts published on 1958-03-12 |
| 28 | q <- KorAPConnection() |> |
| 29 | corpusQuery("<base/s=t>", # this matches each text once |
| 30 | vc = "pubDate in 1958-03-12", |
| 31 | fields = c("textSigle", "title"), |
| 32 | ) |> |
| 33 | fetchAll() |
| 34 | q@collectedMatches |
| 35 | } |
| 36 | |
| 37 | } |
| 38 | \seealso{ |
| 39 | Other corpus search functions: |
| 40 | \code{\link{corpusQuery,KorAPConnection-method}}, |
| 41 | \code{\link{fetchNext,KorAPQuery-method}} |
| 42 | } |
| 43 | \concept{corpus search functions} |