Service with long timeouts. Like LoT
authorDennis Schafroth <dennis@indexdata.com>
Thu, 24 Feb 2011 13:53:30 +0000 (14:53 +0100)
committerDennis Schafroth <dennis@indexdata.com>
Thu, 24 Feb 2011 13:53:30 +0000 (14:53 +0100)
etc/services/long_sessions.xml [new file with mode: 0644]

diff --git a/etc/services/long_sessions.xml b/etc/services/long_sessions.xml
new file mode 100644 (file)
index 0000000..c431027
--- /dev/null
@@ -0,0 +1,153 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<service id="perf_t" xmlns="http://www.indexdata.com/pazpar2/1.0">
+  <timeout session="600" z3950_operation="30" z3950_session="900"/>  
+  <settings target="*">
+    <set target="localhost:9999/db01" name="pz:name" value="db01"/>
+    <set target="localhost:9999/db02" name="pz:name" value="db02"/>
+    <set target="localhost:9999/db03" name="pz:name" value="db03"/>
+    <set target="localhost:9999/db04" name="pz:name" value="db04"/>
+    <set target="localhost:9999/db05" name="pz:name" value="db05"/>
+    <set target="localhost:9999/db06" name="pz:name" value="db06"/>
+    <set target="localhost:9999/db07" name="pz:name" value="db07"/>
+    <set target="localhost:9999/db08" name="pz:name" value="db08"/>
+    <set target="localhost:9999/db09" name="pz:name" value="db09"/>
+    <set target="localhost:9999/db10" name="pz:name" value="db10"/>
+
+    <set target="localhost:9999/db11" name="pz:name" value="db11"/>
+    <set target="localhost:9999/db12" name="pz:name" value="db12"/>
+    <set target="localhost:9999/db13" name="pz:name" value="db13"/>
+    <set target="localhost:9999/db14" name="pz:name" value="db14"/>
+    <set target="localhost:9999/db15" name="pz:name" value="db15"/>
+    <set target="localhost:9999/db16" name="pz:name" value="db16"/>
+    <set target="localhost:9999/db17" name="pz:name" value="db17"/>
+    <set target="localhost:9999/db18" name="pz:name" value="db18"/>
+
+    <!-- mapping for unqualified search -->
+    <set name="pz:cclmap:term" value="u=1016 t=l,r s=al"/>
+    <set name="pz:piggyback" value="1" />
+
+    <!-- field-specific mappings -->
+    <set name="pz:cclmap:au" value="u=1004 s=al"/>
+    <set name="pz:cclmap:ti" value="u=4 s=al"/>
+    <set name="pz:cclmap:su" value="u=21 s=al"/>
+    <set name="pz:cclmap:isbn" value="u=7"/>
+    <set name="pz:cclmap:issn" value="u=8"/>
+    <set name="pz:cclmap:date" value="u=30 r=r"/>
+
+    <!-- Retrieval settings -->
+
+    <set name="pz:requestsyntax" value="marc21"/>
+    <set name="pz:elements" value="F"/>
+
+    <!-- Result normalization settings -->
+
+    <set name="pz:nativesyntax" value="txml"/>
+    <set name="pz:xslt" value="tmarc.xsl"/>
+  </settings>
+
+  <relevance>
+    <icu_chain id="relevance" locale="en">
+      <transform rule="[:Control:] Any-Remove"/>
+      <tokenize rule="l"/>
+      <transform rule="[[:WhiteSpace:][:Punctuation:]] Remove"/>
+      <casemap rule="l"/>
+    </icu_chain>
+  </relevance>
+  
+  <sort>
+    <icu_chain id="sort" locale="en">
+      <transform rule="[[:Control:][:WhiteSpace:][:Punctuation:]] Remove"/>
+      <casemap rule="l"/>
+    </icu_chain>
+  </sort>
+  
+  <mergekey>
+    <icu_chain id="mergekey" locale="en">
+      <tokenize rule="l"/>
+      <transform rule="[[:Control:][:WhiteSpace:][:Punctuation:]] Remove"/>
+      <casemap rule="l"/>
+    </icu_chain>
+  </mergekey>
+  
+  <!-- we try to keep same order as in marc21.xsl -->
+  <metadata name="id" brief="yes"/>
+  <metadata name="lccn" merge="unique"/>
+  <metadata name="isbn"/>
+  <metadata name="issn"/>
+  <metadata name="tech-rep-nr"/>
+  <metadata name="author" brief="yes" termlist="yes" merge="unique" 
+           rank="2" mergekey="optional"/>
+  <metadata name="author-title"/>
+  <metadata name="author-date"/>
+  <metadata name="corporate-name"/>
+  <metadata name="corporate-location"/>
+  <metadata name="corporate-date"/>
+  <metadata name="meeting-name"/>
+  <metadata name="meeting-location"/>
+  <metadata name="meeting-date"/>
+  <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"/>
+  <metadata name="title-remainder" brief="yes" merge="longest" rank="5"/>
+  <metadata name="title-responsibility" brief="yes" merge="longest"/>
+  <metadata name="title-dates" brief="yes" merge="longest"/>
+  <metadata name="title-medium" brief="yes" merge="longest"/>
+  <metadata name="title-number-section" brief="yes" merge="longest"/>
+  <metadata name="medium" brief="yes" merge="no" mergekey="optional"/>
+  <metadata name="iii-id" brief="yes" merge="no"/>
+  <metadata name="edition"/>
+  <metadata name="publication-place"/>
+  <metadata name="publication-name"/>
+  <metadata name="publication-date"/>
+  <metadata name="physical-extent"/>
+  <metadata name="physical-format"/>
+  <metadata name="physical-dimensions"/>
+  <metadata name="physical-accomp"/>
+  <metadata name="physical-unittype"/>
+  <metadata name="physical-unitsize"/>
+  <metadata name="physical-specified"/>
+  
+  <metadata name="series-title"/>
+  
+  <metadata name="description" brief="yes" merge="unique" rank="3"/>
+  <metadata name="subject-long" rank="3"/>
+  <metadata name="subject" termlist="yes" rank="0"/>
+  <metadata name="snippet" brief="yes" merge="unique"/>
+  <metadata name="electronic-url" brief="yes" merge="no"/>
+  <metadata name="electronic-format-type" />
+  <metadata name="electronic-format-instruction" />
+  <metadata name="electronic-url" brief="yes" merge="no"/>
+  <metadata name="electronic-text" brief="yes" merge="no"/>
+  <metadata name="electronic-note"/>
+  <metadata name="citation"/>
+  <metadata name="holding"/>
+  <metadata name="fulltext"/>
+  <metadata name="locallocation" brief="yes"/>
+  <metadata name="callnumber" brief="yes"/>
+  <metadata name="publicnote" brief="yes"/>
+  
+  <!-- journals -->
+  <metadata name="journal-title"/>
+  <metadata name="journal-subpart"/>
+  <metadata name="volume-number"/>
+  <metadata name="issue-date"/>
+  <metadata name="issue-number"/>
+  
+  <metadata name="url_recipe" setting="postproc" brief="yes" merge="no"/>
+  <metadata name="open_url_resolver" setting="parameter" merge="no"/>
+  <metadata name="open-url" merge="longest"/>
+  <metadata name="use_url_proxy" setting="postproc" brief="yes" merge="no"/>
+  
+  <metadata name="publisher"/>
+  <metadata name="available"/>
+  <metadata name="due"/>
+  <metadata name="thumburl" brief="yes" merge="unique"/>
+  <metadata name="score"/>
+</service>
+<!-- Keep this comment at the end of the file
+     Local variables:
+     mode: nxml
+     End:
+-->
+