blob: 67501922d32d77bbf93a763f7a7bfd18efa2a6d7 [file] [log] [blame]
Marc Kupietzc6160982025-06-24 15:57:51 +02001% 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
16q <- KorAPConnection() |>
17 corpusQuery("Ameisenplage") |>
18 fetchAll()
19q@collectedMatches
20
21# Fetch also all KWICs
22q <- KorAPConnection() |> auth() |>
23 corpusQuery("Ameisenplage", metadataOnly = FALSE) |>
24 fetchAll()
25q@collectedMatches
26
27# Retrieve title and text sigle metadata of all texts published on 1958-03-12
28q <- 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()
34q@collectedMatches
35}
36
37}
38\seealso{
39Other corpus search functions:
40\code{\link{corpusQuery,KorAPConnection-method}},
41\code{\link{fetchNext,KorAPQuery-method}}
42}
43\concept{corpus search functions}