Description Usage Arguments Value Examples
Search for stories with various parameters. Multiple parameters will be connected with AND in the call.
1 2 3 4 5 6 7 8 9 10 11 12 |
text |
Optional character vector for full text search passed to the Solr query. If character vector contains more than one element, elements will be connected with OR. |
title |
Optional character vector for title search passed to the Solr query. If character vector contains more than one element, elements will be connected with OR. |
media_id |
Optional media ids (see |
stories_id |
Optional stories ids passed to the Solr query. If vector contains more than one element, elements will be connected with OR. |
after_date |
Limit results to stories published after this date. Should
be a date string that can be interpreted as a |
before_date |
Limit results to stories published before this date. Should
be a date string that can be interpreted as a |
n |
Number of stories to search. Should be <= 1000. |
last_processed_stories_id |
Limit results to stories with a
|
key |
MediaCloud API key. Will be read from environment
variable 'MEDIACLOUD_API_KEY' if set to |
tibble |
Logical indicating whether result should be returned as
a tibble. Default to |
A tibble containing information about the stories.
1 2 3 4 5 6 7 | ## Not run:
search_stories(text = c("football", "soccer"))
search_stories(text = "football NOT soccer")
search_stories(title = "football", media_id = c(1, 2))
search_stories("football", after_date = "2020-01-01", before_date = "2020-01-02", media_id = 1)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.