Put ICU char mapping in server.xml
authorAdam Dickmeiss <adam@indexdata.dk>
Mon, 25 Jan 2010 12:28:16 +0000 (13:28 +0100)
committerAdam Dickmeiss <adam@indexdata.dk>
Mon, 25 Jan 2010 12:28:16 +0000 (13:28 +0100)
The Debian server.xml now has ICU mappings attached to it. This serves
as defaults for services that do not define it themselves.

debian/server.xml

index d4cb71a..419e7bf 100644 (file)
@@ -3,7 +3,34 @@
   
   <server>
     <listen port="8004"/>
+
+    <!-- character set mapping.. This can be overriden in services -->
+    <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>
+
     <include src="services-enabled/*.xml"/>
+
   </server>
   
 </pazpar2>