changedInput schema / properties / act / description
Previous value: -"Optional words the title's name must contain, such as 'income tax assessment 1997'."New value: +"Optional words the title's name must contain, such as 'income tax assessment 1997'. With as_at, a Register ID also works."
addedInput schema / properties / as_at
Added value: +{
+ "anyOf": [
+ {
+ "maxLength": 10,
+ "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "Optional YYYY-MM-DD date the user names. Rows come only from titles whose status for it is captured; other titles are refused by name. Do not infer today.",
+ "format": "date",
+ "title": "As At"
+}
changedInput schema / properties / in_force_only / description
Previous value: -"Leave out provisions the corpus marks as a superseded compilation. Set false to see them too; each then carries a caveat."New value: +"Leave out provisions the corpus marks as a superseded compilation. Set false to see them too; each then carries a caveat. Ignored with as_at, where the status decides."
changedInput schema / properties / query / description
Previous value: -"Words to find together in one provision, case-insensitive; no regular expressions."New value: +"Words to find together in one provision, or a plain question, case-insensitive; no regular expressions."
addedOutput schema / $defs / AsAtRefusal
Added value: +{
+ "additionalProperties": true,
+ "description": "One title a date withheld, so that no row is left out silently.",
+ "properties": {
+ "act": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Act"
+ },
+ "as_at": {
+ "$ref": "#/$defs/AsAtStanding"
+ },
+ "held_compilations": {
+ "description": "Only for a title the corpus holds in more than one compilation: each window it holds, earliest first. None covers the date.",
+ "items": {
+ "$ref": "#/$defs/CompilationWindow"
+ },
+ "title": "Held Compilations",
+ "type": "array"
+ },
+ "matching_rows": {
+ "description": "Rows withheld that hold every word, or for a read, the rows that read asked for.",
+ "minimum": 0,
+ "title": "Matching Rows",
+ "type": "integer"
+ },
+ "partial_rows": {
+ "description": "Rows withheld that the search would have offered as partial hits.",
+ "minimum": 0,
+ "title": "Partial Rows",
+ "type": "integer"
+ },
+ "refused": {
+ "const": true,
+ "title": "Refused",
+ "type": "boolean"
+ },
+ "register_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Register Id"
+ }
+ },
+ "required": [
+ "refused",
+ "register_id",
+ "act",
+ "matching_rows",
+ "partial_rows",
+ "as_at"
+ ],
+ "title": "AsAtRefusal",
+ "type": "object"
+}
addedOutput schema / $defs / AsAtStanding
Added value: +{
+ "additionalProperties": true,
+ "description": "A title's compilation window against one date, in the corpus builder's field names.",
+ "properties": {
+ "compilation_date": {
+ "description": "Date in YYYY-MM-DD form.",
+ "format": "date",
+ "pattern": "^[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])$",
+ "title": "Compilation Date",
+ "type": "string"
+ },
+ "covers": {
+ "description": "What the status covers. Retain it.",
+ "title": "Covers",
+ "type": "string"
+ },
+ "date": {
+ "description": "Date in YYYY-MM-DD form.",
+ "format": "date",
+ "pattern": "^[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])$",
+ "title": "Date",
+ "type": "string"
+ },
+ "next_step": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "What to do about a refused title; null for captured.",
+ "title": "Next Step"
+ },
+ "retrieved": {
+ "description": "Date in YYYY-MM-DD form.",
+ "format": "date",
+ "pattern": "^[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])$",
+ "title": "Retrieved",
+ "type": "string"
+ },
+ "status": {
+ "description": "How the compilation the corpus holds relates to date. captured is not a finding that the text was the law then.",
+ "enum": [
+ "captured",
+ "before_compilation",
+ "superseded",
+ "after_retrieval"
+ ],
+ "title": "Status",
+ "type": "string"
+ },
+ "superseded_from": {
+ "anyOf": [
+ {
+ "description": "Date in YYYY-MM-DD form.",
+ "format": "date",
+ "pattern": "^[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "When a later version started, or null if the version was current when the corpus was built.",
+ "title": "Superseded From"
+ }
+ },
+ "required": [
+ "date",
+ "status",
+ "compilation_date",
+ "superseded_from",
+ "retrieved",
+ "covers",
+ "next_step"
+ ],
+ "title": "AsAtStanding",
+ "type": "object"
+}
addedOutput schema / $defs / AsAtSummary
Added value: +{
+ "additionalProperties": true,
+ "properties": {
+ "covers": {
+ "description": "What the status covers. Retain it.",
+ "title": "Covers",
+ "type": "string"
+ },
+ "date": {
+ "description": "Date in YYYY-MM-DD form.",
+ "format": "date",
+ "pattern": "^[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])$",
+ "title": "Date",
+ "type": "string"
+ },
+ "refused_titles": {
+ "description": "Titles refused, which can exceed the refusals listed.",
+ "minimum": 0,
+ "title": "Refused Titles",
+ "type": "integer"
+ },
+ "rows": {
+ "description": "Rows returned on this page.",
+ "minimum": 0,
+ "title": "Rows",
+ "type": "integer"
+ },
+ "titles": {
+ "additionalProperties": {
+ "type": "integer"
+ },
+ "description": "Titles in the corpus at each status for date.",
+ "title": "Titles",
+ "type": "object"
+ },
+ "unlisted_titles": {
+ "additionalProperties": {
+ "items": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ]
+ },
+ "type": "array"
+ },
+ "description": "Register ids of refused titles past the refusals list, by status.",
+ "title": "Unlisted Titles",
+ "type": "object"
+ },
+ "withheld_rows": {
+ "description": "Rows withheld across all refusals.",
+ "minimum": 0,
+ "title": "Withheld Rows",
+ "type": "integer"
+ }
+ },
+ "required": [
+ "date",
+ "rows",
+ "withheld_rows",
+ "refused_titles",
+ "unlisted_titles",
+ "titles",
+ "covers"
+ ],
+ "title": "AsAtSummary",
+ "type": "object"
+}
addedOutput schema / $defs / CompilationWindow
Added value: +{
+ "additionalProperties": true,
+ "description": "One compilation of a title the corpus holds, in the corpus builder's field names.",
+ "properties": {
+ "compilation_date": {
+ "description": "Date in YYYY-MM-DD form.",
+ "format": "date",
+ "pattern": "^[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])$",
+ "title": "Compilation Date",
+ "type": "string"
+ },
+ "retrieved": {
+ "description": "Date in YYYY-MM-DD form.",
+ "format": "date",
+ "pattern": "^[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])$",
+ "title": "Retrieved",
+ "type": "string"
+ },
+ "superseded_from": {
+ "anyOf": [
+ {
+ "description": "Date in YYYY-MM-DD form.",
+ "format": "date",
+ "pattern": "^[0-9]{4}-(?:0[1-9]|1[0-2])-(?:0[1-9]|[12][0-9]|3[01])$",
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "When the next version started, or null if the version was current when the corpus was built.",
+ "title": "Superseded From"
+ }
+ },
+ "required": [
+ "compilation_date",
+ "superseded_from",
+ "retrieved"
+ ],
+ "title": "CompilationWindow",
+ "type": "object"
+}
addedOutput schema / $defs / LegislationSection / properties / as_at
Added value: +{
+ "$ref": "#/$defs/AsAtStanding",
+ "description": "Only with as_at. This row's status and window."
+}
addedOutput schema / $defs / LegislationSection / properties / retrieved
Added value: +{
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Date this stored text was captured, not a live check.",
+ "title": "Retrieved"
+}
addedOutput schema / $defs / LegislationSection / properties / superseded_from
Added value: +{
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Recorded successor-version start, when supplied by the corpus; not the application date of every provision.",
+ "title": "Superseded From"
+}
addedOutput schema / $defs / PartialLegislationHit
Added value: +{
+ "additionalProperties": true,
+ "description": "A provision holding only some of the query's words, which is not a match.",
+ "properties": {
+ "act": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Act"
+ },
+ "as_at": {
+ "$ref": "#/$defs/AsAtStanding",
+ "description": "Only with as_at. This row's status and window."
+ },
+ "attribution": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Attribution"
+ },
+ "caveats": {
+ "description": "Limitations to retain when presenting the result.",
+ "items": {
+ "type": "string"
+ },
+ "title": "Caveats",
+ "type": "array"
+ },
+ "collection": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Collection"
+ },
+ "compilation_date": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Compilation Date"
+ },
+ "compilation_number": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Compilation Number"
+ },
+ "container": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Container"
+ },
+ "heading": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Heading"
+ },
+ "kind": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Kind"
+ },
+ "licence": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Licence"
+ },
+ "match": {
+ "const": "partial",
+ "description": "Holds at least 2 of the query's words but not all, a modal word's opposite form counting towards the 2: not a match.",
+ "title": "Match",
+ "type": "string"
+ },
+ "matched_words": {
+ "description": "The query words this row holds.",
+ "items": {
+ "type": "string"
+ },
+ "title": "Matched Words",
+ "type": "array"
+ },
+ "missing_words": {
+ "description": "The query words this row lacks.",
+ "items": {
+ "type": "string"
+ },
+ "title": "Missing Words",
+ "type": "array"
+ },
+ "register_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Register Id"
+ },
+ "register_page": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Register Page"
+ },
+ "retrieved": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Date this stored text was captured, not a live check.",
+ "title": "Retrieved"
+ },
+ "row_id": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Row Id"
+ },
+ "section": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Section"
+ },
+ "source_url": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Source Url"
+ },
+ "superseded_from": {
+ "anyOf": [
+ {
+ "type": "string"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "description": "Recorded successor-version start, when supplied by the corpus; not the application date of every provision.",
+ "title": "Superseded From"
+ },
+ "text": {
+ "title": "Text",
+ "type": "string"
+ },
+ "total_chars": {
+ "description": "Characters in the stored provision before truncation.",
+ "minimum": 0,
+ "title": "Total Chars",
+ "type": "integer"
+ },
+ "version_is_current": {
+ "anyOf": [
+ {
+ "type": "boolean"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "title": "Version Is Current"
+ }
+ },
+ "required": [
+ "row_id",
+ "register_id",
+ "act",
+ "collection",
+ "section",
+ "heading",
+ "container",
+ "kind",
+ "compilation_number",
+ "compilation_date",
+ "version_is_current",
+ "register_page",
+ "source_url",
+ "licence",
+ "attribution",
+ "text",
+ "total_chars",
+ "caveats",
+ "match",
+ "matched_words",
+ "missing_words"
+ ],
+ "title": "PartialLegislationHit",
+ "type": "object"
+}
addedOutput schema / properties / as_at_summary
Added value: +{
+ "$ref": "#/$defs/AsAtSummary",
+ "description": "Only with as_at. Counts rows and every title's status."
+}
addedOutput schema / properties / dropped_words
Added value: +{
+ "description": "Stop words left out of the query before searching; matches need not hold them.",
+ "items": {
+ "type": "string"
+ },
+ "title": "Dropped Words",
+ "type": "array"
+}
addedOutput schema / properties / matches / description
Added value: +"Provisions holding every query word other than dropped_words."
addedOutput schema / properties / partial_hits
Added value: +{
+ "description": "Provisions whose heading and text hold at least 2 of the words and every word with a digit, but not all the words, ranked below every match. A modal word's opposite form counts towards the 2 but stays in missing_words, so matched_words can hold fewer than 2 words. Never present one as a match.",
+ "items": {
+ "$ref": "#/$defs/PartialLegislationHit"
+ },
+ "title": "Partial Hits",
+ "type": "array"
+}
addedOutput schema / properties / refusals
Added value: +{
+ "description": "Only with as_at. Each title withheld for that date, with its status and next step. A refusal is an answer, not an empty search.",
+ "items": {
+ "$ref": "#/$defs/AsAtRefusal"
+ },
+ "title": "Refusals",
+ "type": "array"
+}
changedOutput schema / required
Previous value: -[
- "matches",
- "has_more",
- "next_offset",
- "corpus",
- "notice"
-]New value: +[
+ "matches",
+ "partial_hits",
+ "dropped_words",
+ "has_more",
+ "next_offset",
+ "corpus",
+ "notice"
+]