Skip to content

Commit f272650

Browse files
committed
Add year constraint to search options
Signed-off-by: Cristina <[email protected]>
1 parent 39f2666 commit f272650

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/main/ml-modules/root/judgments/search/search-v2.xqy

+6
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,12 @@ let $search-options := <options xmlns="http://marklogic.com/appservices/search">
173173
<path-index xmlns:akn="http://docs.oasis-open.org/legaldocml/ns/akn/3.0" xmlns:uk="https://caselaw.nationalarchives.gov.uk/akn">//akn:proprietary/uk:court</path-index>
174174
</range>
175175
</constraint>
176+
<constraint name="year">
177+
<range type="xs:gYear" facet="true">
178+
<facet-option>limit=10</facet-option>
179+
<path-index xmlns:akn="http://docs.oasis-open.org/legaldocml/ns/akn/3.0" xmlns:uk="https://caselaw.nationalarchives.gov.uk/akn">//akn:proprietary/uk:year</path-index>
180+
</range>
181+
</constraint>
176182
{ $sort-order }
177183
<extract-document-data xmlns:akn="http://docs.oasis-open.org/legaldocml/ns/akn/3.0" xmlns:uk="https://caselaw.nationalarchives.gov.uk/akn">
178184
<extract-path>//akn:FRBRWork/akn:FRBRdate</extract-path>

0 commit comments

Comments
 (0)