Make test_url.sh test for two-level metadata structure
[pazpar2-moved-to-github.git] / test / test_url.cfg
1 <?xml version="1.0" encoding="UTF-8"?>
2 <pazpar2 xmlns="http://www.indexdata.com/pazpar2/1.0">
3   <!-- Used by test_url.sh -->
4   <threads number="0"/> <!-- non-zero to enable threaded operation -->
5   <server>
6     <listen port="9763"/>
7     
8     <service>
9       <icu_chain id="relevance" locale="en">
10         <transform rule="[:Control:] Any-Remove"/>
11         <tokenize rule="l"/>
12         <transform rule="[[:WhiteSpace:][:Punctuation:]`] Remove"/>
13         <casemap rule="l"/>
14       </icu_chain>
15       
16       <icu_chain id="sort" locale="en">
17         <transform rule="[[:Control:][:WhiteSpace:][:Punctuation:]`] Remove"/>
18         <casemap rule="l"/>
19       </icu_chain>
20       
21       <icu_chain id="mergekey" locale="en">
22         <tokenize rule="l"/>
23         <transform rule="[[:Control:][:WhiteSpace:][:Punctuation:]`] Remove"/>
24         <casemap rule="l"/>
25       </icu_chain>
26       
27       <icu_chain id="facet" locale="en">
28         <display/>
29         <transform rule="Title"/>
30       </icu_chain>
31       
32       <metadata name="url" merge="unique"/>
33       <metadata name="title" brief="yes" sortkey="skiparticle" merge="longest" rank="6" mergekey="required" />
34       <metadata name="title-remainder" brief="yes" merge="longest" rank="5"/>
35       <metadata name="isbn"/>
36       <metadata name="date" brief="yes" sortkey="numeric" type="year" merge="range"
37                 termlist="yes"/>
38       <metadata>
39          <metadata name="author" brief="yes" termlist="yes" merge="longest" rank="2" mergekey="optional" />
40          <metadata name="subject" merge="unique" termlist="yes" rank="3"/>
41          <metadata name="id"/>
42          <metadata name="lccn" merge="unique"/>
43       </metadata>
44       <metadata name="description" brief="yes" merge="longest" rank="3"/>
45     </service>
46     
47   </server>
48   
49 </pazpar2>
50 <!-- Keep this comment at the end of the file
51      Local variables:
52      mode: nxml
53      End:
54 -->
55