% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/search.R
\name{search_all_cis}
\alias{search_all_cis}
\title{Search all CIS results with automatic pagination}
\usage{
search_all_cis(
  q = "",
  from = NULL,
  to = NULL,
  sort = "relevance",
  catalogo = "estudio",
  ...
)
}
\arguments{
\item{q}{String. The search query. Default is an empty string.}

\item{from}{Date or NULL. The start date for filtering results. Default is NULL.
The date format must be "YYYY-MM-DD".}

\item{to}{Date or NULL. The end date for filtering results. Default is NULL.
The date format must be "YYYY-MM-DD".}

\item{sort}{String. The sorting order for the results
(\code{"publishDate-"}, \code{"publishDate+"}, \code{"relevance"}).
Default is \code{"relevance"}.}

\item{catalogo}{String. The catalog type (\code{"estudio"}, \code{"pregunta"},
\code{"serie"}). Default is \code{"estudio"}.}

\item{...}{Additional parameters passed to \code{\link{search_cis}}.}
}
\value{
A tibble with all search results across all pages.
}
\description{
Calls \code{\link{search_cis}} repeatedly, incrementing the page index until
no more results are returned, and returns all results in a single tibble.
}
\examples{
\donttest{
# Retrieve all postelectoral studies (all pages)
all_studies <- search_all_cis(q = "postelectoral")
print(nrow(all_studies))

# Filter by date range
studies_2010_2020 <- search_all_cis(
  q    = "ideologia",
  from = "2010-01-01",
  to   = "2020-12-31"
)
print(studies_2010_2020)
}
}
