Skip to content

Commit 2db6d8e

Browse files
author
Charles Greer
committed
Bootstrapping index update
1 parent d0c8973 commit 2db6d8e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

src/test/resources/bootstrap.xqy

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,28 @@ as empty-sequence()
194194
if (empty($index-specs)) then $c
195195
else admin:database-add-range-field-index($c, $dbid, $index-specs)
196196

197+
let $index-specs := admin:database-range-path-index(
198+
$dbid,
199+
"string",
200+
"com.marklogic.client.test.Country/continent",
201+
"http://marklogic.com/collation/",
202+
fn:false(),
203+
"ignore")
204+
let $c :=
205+
if (empty($index-specs)) then $c
206+
else admin:database-add-range-path-index($c, $dbid, $index-specs)
207+
208+
let $index-specs := admin:database-range-path-index(
209+
$dbid,
210+
"unsignedLong",
211+
"com.marklogic.client.test.City/population",
212+
(),
213+
fn:false(),
214+
"ignore")
215+
let $c :=
216+
if (empty($index-specs)) then $c
217+
else admin:database-add-range-path-index($c, $dbid, $index-specs)
218+
197219
return admin:save-configuration-without-restart($c)
198220
};
199221

0 commit comments

Comments
 (0)