Add default ICU chain "facet" to produce the same as removed hardcoded punctuation...
authorDennis Schafroth <dennis@indexdata.com>
Wed, 16 May 2012 12:24:49 +0000 (14:24 +0200)
committerDennis Schafroth <dennis@indexdata.com>
Wed, 16 May 2012 12:24:49 +0000 (14:24 +0200)
test/test_filter.cfg
test/test_icu.cfg
test/test_solr.cfg

index 6f07275..afa0e19 100644 (file)
@@ -3,6 +3,12 @@
   <!-- Used by test_filter.sh -->
   <server>
     <listen port="9763"/>
+
+    <!-- same as hardcoded rule -->
+    <icu_chain id="facet" locale="en">
+      <transliterate>[[:WhiteSpace:][,.!;]]* } [$] > ;</transliterate>
+    </icu_chain>
+
     <service>
       <settings target="*">
         <set target="localhost:9999/Slow" name="pz:name" value="ztest slow"/>
index 0d5be21..d3d451e 100644 (file)
     </icu_chain>
 
     <icu_chain id="facet-author" locale="en">
-<!--
-      <display/> 
--->
       <transliterate>
-       [.,]* } [$] > ;
+       [,]* } [$] > ;
       </transliterate>
     </icu_chain>
 
@@ -56,7 +53,7 @@
       <metadata name="date" brief="yes" sortkey="numeric" type="year" merge="range"
                termlist="yes"/>
       <metadata name="author" brief="yes" termlist="yes"
-                merge="longest" rank="2" facetrule="facet-author"/>
+                merge="longest" rank="2" facetrule="facet-author" />
       <metadata name="subject" merge="unique" termlist="yes" rank="3"/>
       <metadata name="id"/>
       <metadata name="lccn" merge="unique"/>
index 1c30567..81d1680 100644 (file)
@@ -4,6 +4,12 @@
   <server>
     <listen port="9763"/>
     
+    <!-- same as hardcoded rule -->
+    <icu_chain id="facet" locale="en">
+      <transliterate>[[:WhiteSpace:][,.!;]]* } [$] > ;</transliterate>
+    </icu_chain>
+
+    
     <service>
       <metadata name="url" merge="unique"/>
       <metadata name="title" brief="yes" sortkey="skiparticle" merge="longest" rank="6" mergekey="required" />