Skip to contents

Query the Open Justice Oklahoma database for minutes matching a search term

Usage

ojo_search_minutes(query, ..., .con = NULL, .silent = F)

Arguments

query

A term or phrase to search for using the PostgreSQL full text search syntax

...

Placeholder

.con

The OJO connection to use

.silent

Should the command line interface elements be shown? Defaults to TRUE if the user is in an interactive session, and FALSE if they are not.

Value

data, a lazy tibble containing the resulting minutes

Examples

if (FALSE) { # \dontrun{

# Minutes containing words like 'mcgirt'
ojo_search_minutes("mcgirt")

# Minutes containing 'mcgirt' AND 'jursdiction
ojo_search_minutes("mcgirt & jurisdiction")

# Minutes containing 'mcgirt' OR 'jurisdiction
ojo_search_minutes("mcgirt | jurisdiction")

# Minutes NOT containing 'mcgirt'
## Use sparingly! It is likely to return rows in the hundreds of thousands or millions!
ojo_search_minutes("!! mcgirt")

# Minutes containing 'tribal' FOLLOWED BY 'jurisdiction'
ojo_search_minutes("tribal <-> jurisdiction")
} # }