Description Usage Arguments Details Value Examples
Functions for constructing the query_params
-argument of the
fetch_notices()
-function. Functions suffixed with _filter
and _search
use the respective functionalities of the
Azure Cognitive Search.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 | query_and(q1, q2)
query_or(q1, q2)
dps_filter(is_dps = TRUE)
framework_agreement_filter(is_fa = TRUE)
is_national_filter(is_national = TRUE)
notice_number_filter(notice_number)
id_filter(id)
procurement_project_filter(id)
all_notices_modified_since_filter(since = today() %m-% days(1))
all_notices_modified_until_filter(until = today())
all_notices_published_since_filter(since = today() %m-% days(1))
all_notices_published_until_filter(until = today())
organisation_name_search(name)
organisation_id_search(organisation_id)
cpv_search(cpv)
|
q1 |
First query |
q2 |
Second query |
is_dps |
Whether to filter notices that are for DPSs or notices that are not for DPSs. |
is_fa |
Whether to filter notices that are for FAs or notices that are not for FAs. |
is_national |
Whether to filter notices that are for FAs or notices that are not for FAs. |
notice_number |
The notice number. E.g. |
id |
The id of the procurement project. E.g. |
since |
A date-object. Includes the boundary and defaults to yesterday. |
until |
A date-object. Includes the boundary and defaults to today. |
name |
The name of the procuring organisation. E.g. |
organisation_id |
The national registration id of the procuring organisation.
E.g. |
cpv |
The cpv code to search E.g. |
query_and
and _or
can be used to combine queries (see example below).
A list containing the query that can be passed to fetch_notices()
.
1 2 3 4 5 | # A query that returns all notices modified 2020-01-01 or later
# from a certain organisation
q <- organisation_id_filter("1234567-8") %>%
query_and(all_notices_modified_since_filter(lubridate::ymd("2020-01-01")))
fetch_notices(q, api_key)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.