Add test for pz:maxrecs
authorAdam Dickmeiss <adam@indexdata.dk>
Fri, 9 Oct 2009 18:13:11 +0000 (20:13 +0200)
committerAdam Dickmeiss <adam@indexdata.dk>
Fri, 9 Oct 2009 18:13:11 +0000 (20:13 +0200)
test/test_http_38.res [new file with mode: 0644]
test/test_http_39.res [new file with mode: 0644]
test/test_http_40.res [new file with mode: 0644]
test/test_http_urls

diff --git a/test/test_http_38.res b/test/test_http_38.res
new file mode 100644 (file)
index 0000000..42534e3
--- /dev/null
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<settings><status>OK</status></settings>
\ No newline at end of file
diff --git a/test/test_http_39.res b/test/test_http_39.res
new file mode 100644 (file)
index 0000000..ab63fe6
--- /dev/null
@@ -0,0 +1,2 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<search><status>OK</status></search>
\ No newline at end of file
diff --git a/test/test_http_40.res b/test/test_http_40.res
new file mode 100644 (file)
index 0000000..c78186c
--- /dev/null
@@ -0,0 +1,65 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<show>
+<status>OK</status>
+<activeclients>0</activeclients>
+<merged>8</merged>
+<total>30</total>
+<start>0</start>
+<num>8</num>
+<hit>
+
+<md-title>UTAH EARTHQUAKE EPICENTERS</md-title><location id="z3950.indexdata.com/gils" name="Index Data GILS test server">
+<md-title>UTAH EARTHQUAKE EPICENTERS</md-title></location>
+<relevance>0</relevance>
+<recid>title utah earthquake epicenters author medium book</recid>
+</hit>
+<hit>
+
+<md-title>UTAH GEOLOGICAL AND MINERAL SURVEY PUBLICATIONS</md-title><location id="z3950.indexdata.com/gils" name="Index Data GILS test server">
+<md-title>UTAH GEOLOGICAL AND MINERAL SURVEY PUBLICATIONS</md-title></location>
+<relevance>0</relevance>
+<recid>title utah geological and mineral survey publications author medium book</recid>
+</hit>
+<hit>
+
+<md-title>APPLIED GEOLOGY FILE</md-title><location id="z3950.indexdata.com/gils" name="Index Data GILS test server">
+<md-title>APPLIED GEOLOGY FILE</md-title></location>
+<relevance>0</relevance>
+<recid>title applied geology file author medium book</recid>
+</hit>
+<hit>
+
+<md-title>UTAH CRIB FILE</md-title><location id="z3950.indexdata.com/gils" name="Index Data GILS test server">
+<md-title>UTAH CRIB FILE</md-title></location>
+<relevance>0</relevance>
+<recid>title utah crib file author medium book</recid>
+</hit>
+<hit>
+
+<md-title>MINE MAP INDEX</md-title><location id="z3950.indexdata.com/gils" name="Index Data GILS test server">
+<md-title>MINE MAP INDEX</md-title></location>
+<relevance>0</relevance>
+<recid>title mine map index author medium book</recid>
+</hit>
+<hit>
+
+<md-title>UTAH GEOLOGIC MAP BIBLIOGRAPHY</md-title><location id="z3950.indexdata.com/gils" name="Index Data GILS test server">
+<md-title>UTAH GEOLOGIC MAP BIBLIOGRAPHY</md-title></location>
+<relevance>0</relevance>
+<recid>title utah geologic map bibliography author medium book</recid>
+</hit>
+<hit>
+
+<md-title>ELECTRIC LOG LIBRARY</md-title><location id="z3950.indexdata.com/gils" name="Index Data GILS test server">
+<md-title>ELECTRIC LOG LIBRARY</md-title></location>
+<relevance>0</relevance>
+<recid>title electric log library author medium book</recid>
+</hit>
+<hit>
+
+<md-title>ISOTOPIC DATES OF ROCKS AND MINERALS</md-title><location id="z3950.indexdata.com/gils" name="Index Data GILS test server">
+<md-title>ISOTOPIC DATES OF ROCKS AND MINERALS</md-title></location>
+<relevance>0</relevance>
+<recid>title isotopic dates of rocks and minerals author medium book</recid>
+</hit>
+</show>
index 56bd5d0..90f104e 100644 (file)
@@ -42,3 +42,7 @@ http://localhost:9763/search.pz2?session=5&command=search&query=computer&filter=
 2
 http://localhost:9763/search.pz2?session=5&command=show&start=0&number=1&block=1
 http://localhost:9763/search.pz2?session=5&command=search&query=computer&filter=pz%3Aid%3Dunknown
+http://localhost:9763/search.pz2?session=3&command=settings&pz:maxrecs%5Bz3950.indexdata.com%2Fgils%5D=8
+http://localhost:9763/search.pz2?session=3&command=search&query=the
+2
+http://localhost:9763/search.pz2?session=3&command=show&start=0&number=1&block=1