+++ /dev/null
-<pz:cluster xmlns:pz="http://www.indexdata.com/pazpar2/1.0">
-<record xmlns="http://www.indexdata.com/pazpar2/1.0">
- <metadata type="author">Jack Collins</metadata>
- <metadata type="medium">book</metadata>
- <metadata type="date">1995</metadata>
- <metadata type="title">How to program a computer vol1</metadata>
-</record>
-<record xmlns="http://www.indexdata.com/pazpar2/1.0">
- <metadata type="author">Jack Collins</metadata>
- <metadata type="medium">book</metadata>
- <metadata type="date">1995</metadata>
- <metadata type="title">How to program a computer vol2</metadata>
-</record>
-</pz:cluster>
+++ /dev/null
-<pz:cluster xmlns:pz="http://www.indexdata.com/pazpar2/1.0">
-<record xmlns="http://www.indexdata.com/pazpar2/1.0">
- <metadata type="author">Jack Collins</metadata>
- <metadata type="medium">book</metadata>
- <metadata type="date">1995</metadata>
- <metadata type="title">How to program a computer vol3</metadata>
-</record>
-<record xmlns="http://www.indexdata.com/pazpar2/1.0">
- <metadata type="author">Jack Collins</metadata>
- <metadata type="medium">book</metadata>
- <metadata type="date">1995</metadata>
- <metadata type="title">How to program a computer vol2</metadata>
-</record>
-</pz:cluster>
+++ /dev/null
-<record xmlns="http://www.indexdata.com/pazpar2/1.0">
- <metadata type="author">Jack Collins</metadata>
- <metadata type="medium">book</metadata>
- <metadata type="date">1995</metadata>
- <metadata type="title">How to program a computer vol1</metadata>
-</record>
+++ /dev/null
-<pz:cluster xmlns:pz="http://www.indexdata.com/pazpar2/1.0">
-<record xmlns="http://www.indexdata.com/pazpar2/1.0">
- <metadata type="author">Jack Collins</metadata>
- <metadata type="medium">book</metadata>
- <metadata type="date">1995</metadata>
- <metadata type="title">How to program a computer vol1</metadata>
-</record>
-<record xmlns="http://www.indexdata.com/pazpar2/1.0">
- <metadata type="author">Jack Collins</metadata>
- <metadata type="medium">book</metadata>
- <metadata type="date">1995</metadata>
- <metadata type="title">How to program a computer vol4</metadata>
-</record>
-</pz:cluster>
# srcdir might be set by make
srcdir=${srcdir:-"."}
-YAZ_ZTEST_XML_FETCH=${srcdir}/
-export YAZ_ZTEST_XML_FETCH
-
# terminate pazpar2 if test takes more than this (in seconds)
WAIT=120
fi
if test "$ztest" = "true" ; then
+ YAZ_ZTEST_XML_FETCH=${srcdir}/${PREFIX}.
+ export YAZ_ZTEST_XML_FETCH
+
oIFS=$IFS
IFS=:
F=''
fi
rm -f ztest.pid
rm -f ${PREFIX}_ztest.log
- $F -l ${PREFIX}_ztest.log -p ztest.pid -D tcp:localhost:9999
+ $F -l ${PREFIX}_ztest.log -a ztest_apdu.log -p ztest.pid -D tcp:localhost:9999
sleep 1
if test ! -f ztest.pid; then
echo "yaz-ztest could not be started"
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<pazpar2 xmlns="http://www.indexdata.com/pazpar2/1.0">
+ <server>
+ <listen port="9763"/>
+ <service>
+ <icu_chain id="relevance" locale="en">
+ <transform rule="[:Control:] Any-Remove"/>
+ <tokenize rule="l"/>
+ <transform rule="[[:WhiteSpace:][:Punctuation:]`] Remove"/>
+ <casemap rule="l"/>
+ </icu_chain>
+
+ <icu_chain id="sort" locale="en">
+ <transform rule="[[:Control:][:WhiteSpace:][:Punctuation:]`] Remove"/>
+ <casemap rule="l"/>
+ </icu_chain>
+
+ <icu_chain id="mergekey" locale="en">
+ <tokenize rule="l"/>
+ <transform rule="[[:Control:][:WhiteSpace:][:Punctuation:]`] Remove"/>
+ <casemap rule="l"/>
+ </icu_chain>
+
+ <icu_chain id="facet" locale="en">
+ <display/>
+ <transform rule="Title"/>
+ </icu_chain>
+
+ <settings target="*">
+ <set target="localhost:9999" name="pz:name" value="ztest"/>
+ <set name="pz:cclmap:term" value="u=1016 t=l,r s=al"/>
+ <set name="pz:requestsyntax" value="xml"/>
+ <set name="pz:elements" value="pz"/>
+ <set name="pz:nativesyntax" value="xml"/>
+ </settings>
+ <metadata name="author" brief="yes" termlist="yes" merge="longest"
+ mergekey="optional" />
+ <metadata name="medium" brief="yes" merge="longest" mergekey="optional"/>
+ <metadata name="date" brief="yes" sortkey="numeric" type="year" merge="range"
+ termlist="yes"/>
+ <metadata name="title" brief="yes" sortkey="skiparticle" merge="longest" rank="6" mergekey="required" />
+ </service>
+ </server>
+</pazpar2>
+<!-- Keep this comment at the end of the file
+ Local variables:
+ mode: nxml
+ End:
+-->
--- /dev/null
+<pz:cluster xmlns:pz="http://www.indexdata.com/pazpar2/1.0">
+<record xmlns="http://www.indexdata.com/pazpar2/1.0">
+ <metadata type="author">Jack Collins</metadata>
+ <metadata type="medium">book</metadata>
+ <metadata type="date">1995</metadata>
+ <metadata type="title">How to program a computer vol1</metadata>
+</record>
+<record xmlns="http://www.indexdata.com/pazpar2/1.0">
+ <metadata type="author">Jack Collins</metadata>
+ <metadata type="medium">book</metadata>
+ <metadata type="date">1995</metadata>
+ <metadata type="title">How to program a computer vol2</metadata>
+</record>
+</pz:cluster>
--- /dev/null
+<pz:cluster xmlns:pz="http://www.indexdata.com/pazpar2/1.0">
+<record xmlns="http://www.indexdata.com/pazpar2/1.0">
+ <metadata type="author">Jack Collins</metadata>
+ <metadata type="medium">book</metadata>
+ <metadata type="date">1995</metadata>
+ <metadata type="title">How to program a computer vol3</metadata>
+</record>
+<record xmlns="http://www.indexdata.com/pazpar2/1.0">
+ <metadata type="author">Jack Collins</metadata>
+ <metadata type="medium">book</metadata>
+ <metadata type="date">1995</metadata>
+ <metadata type="title">How to program a computer vol4</metadata>
+</record>
+</pz:cluster>
--- /dev/null
+<record xmlns="http://www.indexdata.com/pazpar2/1.0">
+ <metadata type="author">Jack Collins</metadata>
+ <metadata type="medium">book</metadata>
+ <metadata type="date">1995</metadata>
+ <metadata type="title">How to program a computer vol1</metadata>
+</record>
--- /dev/null
+<pz:cluster xmlns:pz="http://www.indexdata.com/pazpar2/1.0">
+<record xmlns="http://www.indexdata.com/pazpar2/1.0">
+ <metadata type="author">Jack Collins</metadata>
+ <metadata type="medium">book</metadata>
+ <metadata type="date">1995</metadata>
+ <metadata type="title">How to program a computer vol1</metadata>
+</record>
+<record xmlns="http://www.indexdata.com/pazpar2/1.0">
+ <metadata type="author">Jack Collins</metadata>
+ <metadata type="medium">book</metadata>
+ <metadata type="date">1995</metadata>
+ <metadata type="title">How to program a computer vol4</metadata>
+</record>
+</pz:cluster>
http://localhost:9763/search.pz2?command=init
+http://localhost:9763/search.pz2?session=1&command=search&query=1
+1 http://localhost:9763/search.pz2?session=1&command=show&block=1
+http://localhost:9763/search.pz2?session=1&command=search&query=2
+1 http://localhost:9763/search.pz2?session=1&command=show&block=1
+http://localhost:9763/search.pz2?session=1&command=search&query=3
+1 http://localhost:9763/search.pz2?session=1&command=show&block=1
http://localhost:9763/search.pz2?session=1&command=search&query=4
1 http://localhost:9763/search.pz2?session=1&command=show&block=1
<show><status>OK</status>
<activeclients>0</activeclients>
<merged>1</merged>
-<total>23</total>
+<total>1</total>
<start>0</start>
<num>1</num>
<hit>
<md-author>Jack Collins</md-author>
<md-medium>book</md-medium>
<md-date>1995</md-date>
- <md-title>How to program a computer vol3</md-title>
+ <md-title>How to program a computer vol1</md-title>
<location id="localhost:9999"
- name="ztest" checksum="1482143625">
- <md-author>Jack Collins</md-author>
- <md-medium>book</md-medium>
- <md-date>1995</md-date>
- <md-title>How to program a computer vol3</md-title>
- </location>
- <location id="localhost:9999"
- name="ztest" checksum="1482143625">
- <md-author>Jack Collins</md-author>
- <md-medium>book</md-medium>
- <md-date>1995</md-date>
- <md-title>How to program a computer vol2</md-title>
- </location>
- <location id="localhost:9999"
- name="ztest" checksum="970776754">
+ name="ztest" checksum="1993510496">
<md-author>Jack Collins</md-author>
<md-medium>book</md-medium>
<md-date>1995</md-date>
<md-title>How to program a computer vol1</md-title>
</location>
<location id="localhost:9999"
- name="ztest" checksum="459409883">
+ name="ztest" checksum="1993510496">
<md-author>Jack Collins</md-author>
<md-medium>book</md-medium>
<md-date>1995</md-date>
- <md-title>How to program a computer vol4</md-title>
+ <md-title>How to program a computer vol2</md-title>
</location>
- <count>4</count>
- <relevance>89257</relevance>
- <recid>content: author jack collins medium book title how to program a computer vol</recid>
+ <count>2</count>
+ <relevance>0</relevance>
+ <recid>content: author jack collins medium book title how to program a computer vol1</recid>
</hit>
</show>
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<search><status>OK</status></search>
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<show><status>OK</status>
+<activeclients>0</activeclients>
+<merged>2</merged>
+<total>2</total>
+<start>0</start>
+<num>2</num>
+<hit>
+ <md-author>Jack Collins</md-author>
+ <md-medium>book</md-medium>
+ <md-date>1995</md-date>
+ <md-title>How to program a computer vol1</md-title>
+ <location id="localhost:9999"
+ name="ztest" checksum="1993510496">
+ <md-author>Jack Collins</md-author>
+ <md-medium>book</md-medium>
+ <md-date>1995</md-date>
+ <md-title>How to program a computer vol1</md-title>
+ </location>
+ <location id="localhost:9999"
+ name="ztest" checksum="1993510496">
+ <md-author>Jack Collins</md-author>
+ <md-medium>book</md-medium>
+ <md-date>1995</md-date>
+ <md-title>How to program a computer vol2</md-title>
+ </location>
+ <count>2</count>
+ <relevance>0</relevance>
+ <recid>content: author jack collins medium book title how to program a computer vol1</recid>
+</hit>
+<hit>
+ <md-author>Jack Collins</md-author>
+ <md-medium>book</md-medium>
+ <md-date>1995</md-date>
+ <md-title>How to program a computer vol3</md-title>
+ <location id="localhost:9999"
+ name="ztest" checksum="1482143625">
+ <md-author>Jack Collins</md-author>
+ <md-medium>book</md-medium>
+ <md-date>1995</md-date>
+ <md-title>How to program a computer vol3</md-title>
+ </location>
+ <location id="localhost:9999"
+ name="ztest" checksum="1482143625">
+ <md-author>Jack Collins</md-author>
+ <md-medium>book</md-medium>
+ <md-date>1995</md-date>
+ <md-title>How to program a computer vol4</md-title>
+ </location>
+ <count>2</count>
+ <relevance>0</relevance>
+ <recid>content: author jack collins medium book title how to program a computer vol3</recid>
+</hit>
+</show>
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<search><status>OK</status></search>
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<show><status>OK</status>
+<activeclients>0</activeclients>
+<merged>2</merged>
+<total>3</total>
+<start>0</start>
+<num>2</num>
+<hit>
+ <md-author>Jack Collins</md-author>
+ <md-medium>book</md-medium>
+ <md-date>1995</md-date>
+ <md-title>How to program a computer vol1</md-title>
+ <location id="localhost:9999"
+ name="ztest" checksum="1993510496">
+ <md-author>Jack Collins</md-author>
+ <md-medium>book</md-medium>
+ <md-date>1995</md-date>
+ <md-title>How to program a computer vol1</md-title>
+ </location>
+ <location id="localhost:9999"
+ name="ztest" checksum="1993510496">
+ <md-author>Jack Collins</md-author>
+ <md-medium>book</md-medium>
+ <md-date>1995</md-date>
+ <md-title>How to program a computer vol2</md-title>
+ </location>
+ <count>2</count>
+ <relevance>0</relevance>
+ <recid>content: author jack collins medium book title how to program a computer vol1</recid>
+</hit>
+<hit>
+ <md-author>Jack Collins</md-author>
+ <md-medium>book</md-medium>
+ <md-date>1995</md-date>
+ <md-title>How to program a computer vol3</md-title>
+ <location id="localhost:9999"
+ name="ztest" checksum="1482143625">
+ <md-author>Jack Collins</md-author>
+ <md-medium>book</md-medium>
+ <md-date>1995</md-date>
+ <md-title>How to program a computer vol3</md-title>
+ </location>
+ <location id="localhost:9999"
+ name="ztest" checksum="1482143625">
+ <md-author>Jack Collins</md-author>
+ <md-medium>book</md-medium>
+ <md-date>1995</md-date>
+ <md-title>How to program a computer vol4</md-title>
+ </location>
+ <count>2</count>
+ <relevance>0</relevance>
+ <recid>content: author jack collins medium book title how to program a computer vol3</recid>
+</hit>
+</show>
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<search><status>OK</status></search>
\ No newline at end of file
--- /dev/null
+<?xml version="1.0" encoding="UTF-8"?>
+<show><status>OK</status>
+<activeclients>0</activeclients>
+<merged>2</merged>
+<total>4</total>
+<start>0</start>
+<num>2</num>
+<hit>
+ <md-author>Jack Collins</md-author>
+ <md-medium>book</md-medium>
+ <md-date>1995</md-date>
+ <md-title>How to program a computer vol1</md-title>
+ <location id="localhost:9999"
+ name="ztest" checksum="1993510496">
+ <md-author>Jack Collins</md-author>
+ <md-medium>book</md-medium>
+ <md-date>1995</md-date>
+ <md-title>How to program a computer vol1</md-title>
+ </location>
+ <location id="localhost:9999"
+ name="ztest" checksum="1993510496">
+ <md-author>Jack Collins</md-author>
+ <md-medium>book</md-medium>
+ <md-date>1995</md-date>
+ <md-title>How to program a computer vol2</md-title>
+ </location>
+ <location id="localhost:9999"
+ name="ztest" checksum="459409883">
+ <md-author>Jack Collins</md-author>
+ <md-medium>book</md-medium>
+ <md-date>1995</md-date>
+ <md-title>How to program a computer vol4</md-title>
+ </location>
+ <count>3</count>
+ <relevance>0</relevance>
+ <recid>content: author jack collins medium book title how to program a computer vol1</recid>
+</hit>
+<hit>
+ <md-author>Jack Collins</md-author>
+ <md-medium>book</md-medium>
+ <md-date>1995</md-date>
+ <md-title>How to program a computer vol3</md-title>
+ <location id="localhost:9999"
+ name="ztest" checksum="1482143625">
+ <md-author>Jack Collins</md-author>
+ <md-medium>book</md-medium>
+ <md-date>1995</md-date>
+ <md-title>How to program a computer vol3</md-title>
+ </location>
+ <location id="localhost:9999"
+ name="ztest" checksum="1482143625">
+ <md-author>Jack Collins</md-author>
+ <md-medium>book</md-medium>
+ <md-date>1995</md-date>
+ <md-title>How to program a computer vol4</md-title>
+ </location>
+ <count>2</count>
+ <relevance>0</relevance>
+ <recid>content: author jack collins medium book title how to program a computer vol3</recid>
+</hit>
+</show>
\ No newline at end of file