#' Search with term or with a valid Lucene query. #' #' Receive a set of matches for given query. #' #' @param query search term (e.g. an IP address, domain, or file hash) or valid Lucene query #' @param api_key your [packettotal_api_key()]. #' @export #' @references res httr::stop_for_status(res) out <- httr::content(res, as = "text", encoding = "UTF-8") out <- jsonlite::fromJSON(out) out }