Search the database and return how many hits

query_hits(query)

Arguments

query

Specify the text query to send to elasticsearch.

Value

tibble.

Examples

# How many hits were there for a term.
if (FALSE) {
query_hits(
   query ="cotton" 
   )
}