% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/browse.R
\name{search_datasets}
\alias{search_datasets}
\title{Search TCMomics datasets}
\usage{
search_datasets(
  q = NULL,
  tcm = NULL,
  omics = NULL,
  source = NULL,
  organism = NULL,
  tissue = NULL,
  disease = NULL,
  repo = NULL,
  year_min = NULL,
  year_max = NULL,
  sort = NULL,
  search_mode = NULL,
  page = 1L,
  page_size = 20L,
  all_pages = FALSE
)
}
\arguments{
\item{q}{Optional search query string.}

\item{tcm}{TCM classification filter.}

\item{omics}{Omics type filter.}

\item{source}{Source type filter.}

\item{organism}{Organism filter.}

\item{tissue}{Tissue filter.}

\item{disease}{Disease filter.}

\item{repo}{Repository filter.}

\item{year_min}{Minimum publication year.}

\item{year_max}{Maximum publication year.}

\item{sort}{Sort field: \code{"relevance"}, \code{"date_desc"}, \code{"views_desc"}, or
\code{"downloads_desc"}.}

\item{search_mode}{Search mode: \code{"fuzzy"} (default) or \code{"exact"}.}

\item{page}{Page number (default 1).}

\item{page_size}{Results per page (default 20).}

\item{all_pages}{If \code{TRUE}, fetch all pages via auto-pagination.}
}
\value{
A \code{\link[tibble:tibble]{tibble::tibble()}} of datasets with attribute \code{"total"}.
}
\description{
Query the TCMomics multi-omics database with optional text search and
faceted filters.
}
\examples{
\dontrun{
search_datasets(q = "ginseng", omics = "Transcriptomics")
}
}
