Filters
Filter Knowledge Base retrieve requests.
Use filters to restrict which documents a Knowledge Base searches. Filters are most useful for legislation Knowledge Bases, especially provincial and municipal collections.
Recommended legislation filters
For most legislation queries, start with:
{
"filters": {
"principal": true,
"repealed": false
}
}These filters exclude amendment or commencement works and repealed legislation.
Place filters
Use frbr_place or frbr_place__in when you know the country, province, municipality or other locality you want to search.
{
"filters": {
"frbr_place": "za-cpt"
}
}frbr_place is usually the safest place filter because it includes both the country and locality code.
Other filters
The retrieve API also supports:
work_frbr_uriandwork_frbr_uri__in;expression_frbr_uriandexpression_frbr_uri__in;frbr_country;frbr_doctypeandfrbr_doctype__in;frbr_subtypeandfrbr_subtype__in;repealed;commenced;principal.
Use exact filters only when your application already knows the relevant value. For exploratory search, start broad and then narrow the query.
Example
See the retrieve endpoint reference for the full request schema.
Last updated