Define cql:anywhere
authorMike Taylor <mike@indexdata.com>
Thu, 30 Nov 2006 12:44:00 +0000 (12:44 +0000)
committerMike Taylor <mike@indexdata.com>
Thu, 30 Nov 2006 12:44:00 +0000 (12:44 +0000)
zebra/zeerex2index.xsl

index d65bd6a..7717760 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- $Id: zeerex2index.xsl,v 1.6 2006-10-06 11:07:11 mike Exp $ -->
+<!-- $Id: zeerex2index.xsl,v 1.7 2006-11-30 12:44:00 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"
                e:serverInfo/e:database)}"
            type="update">
 
-   <!-- ### define "cql:anywhere" -->
+   <!-- Well, not quite _anywhere_.  Only textual fields are indexed -->
+   <z:index name="cql:anywhere" type="w">
+    <xsl:value-of select="e:serverInfo/e:host"/>
+   </z:index>
+   <z:index name="cql:anywhere" type="w">
+    <xsl:value-of select="e:serverInfo/e:port"/>
+   </z:index>
+   <z:index name="cql:anywhere" type="w">
+    <xsl:value-of select="e:serverInfo/e:database"/>
+   </z:index>
+   <z:index name="cql:anywhere" type="w">
+    <xsl:value-of select="e:databaseInfo/e:title"/>
+   </z:index>
+   <z:index name="cql:anywhere" type="w">
+    <xsl:value-of select="e:databaseInfo/e:description"/>
+   </z:index>
+   <z:index name="cql:anywhere" type="w">
+    <xsl:value-of select="e:databaseInfo/e:author"/>
+   </z:index>
 
    <z:index name="rec:authorityIndicator" type="0">
     <xsl:value-of select="@authoritative"/>