Add indexes to support sorting on
authorMike Taylor <mike@indexdata.com>
Tue, 19 Sep 2006 16:24:59 +0000 (16:24 +0000)
committerMike Taylor <mike@indexdata.com>
Tue, 19 Sep 2006 16:24:59 +0000 (16:24 +0000)
net:host, net:port, net:path, dc:title, dc:creator

zebra/zeerex2index.xsl

index 4275749..883a955 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- $Id: zeerex2index.xsl,v 1.3 2006-05-17 16:15:32 mike Exp $ -->
+<!-- $Id: zeerex2index.xsl,v 1.4 2006-09-19 16:24:59 mike Exp $ -->
 <!-- See the ZeeRex profile at http://srw.cheshire3.org/profiles/ZeeRex/ -->
 <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                 xmlns:z="http://indexdata.dk/zebra/xslt/1"
    <z:index name="net:host" type="0">
     <xsl:value-of select="e:serverInfo/e:host"/>
    </z:index>
+   <z:index name="net:host" type="s">
+    <xsl:value-of select="e:serverInfo/e:host"/>
+   </z:index>
    <z:index name="net:port" type="0">
     <xsl:value-of select="e:serverInfo/e:port"/>
    </z:index>
+   <z:index name="net:port" type="s">
+    <xsl:value-of select="e:serverInfo/e:port"/>
+   </z:index>
    <z:index name="net:path" type="w"><!-- "w" for case-insensitivity -->
     <xsl:value-of select="e:serverInfo/e:database"/>
    </z:index>
+   <z:index name="net:path" type="s">
+    <xsl:value-of select="e:serverInfo/e:database"/>
+   </z:index>
    <z:index name="dc:date" type="d">
     <xsl:value-of select="e:serverInfo/e:database/@lastUpdate"/>
    </z:index>
    <z:index name="dc:title" type="w">
     <xsl:value-of select="e:databaseInfo/e:title"/>
    </z:index>
+   <z:index name="dc:title" type="s">
+    <xsl:value-of select="e:databaseInfo/e:title"/>
+   </z:index>
    <z:index name="dc:description" type="w">
     <xsl:value-of select="e:databaseInfo/e:description"/>
    </z:index>
    <z:index name="dc:creator" type="w">
     <xsl:value-of select="e:databaseInfo/e:author"/>
    </z:index>
+   <z:index name="dc:creator" type="s">
+    <xsl:value-of select="e:databaseInfo/e:author"/>
+   </z:index>
    <z:index name="dc:language" type="w">
     <xsl:value-of select="e:databaseInfo/e:langUsage"/>
    </z:index>