No not lower-case the ID before indexing. Doing this seems to have
authorMike Taylor <mike@indexdata.com>
Fri, 2 Mar 2007 15:50:09 +0000 (15:50 +0000)
committerMike Taylor <mike@indexdata.com>
Fri, 2 Mar 2007 15:50:09 +0000 (15:50 +0000)
the very strange side-effect that IDs that were already all-lowercase
are no longer searchable.

zebra/zeerex2index.xsl

index 7b04304..0f3e102 100644 (file)
@@ -1,5 +1,5 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!-- $Id: zeerex2index.xsl,v 1.11 2007-03-02 14:27:53 mike Exp $ -->
+<!-- $Id: zeerex2index.xsl,v 1.12 2007-03-02 15:50:09 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"
  <xsl:template match="text()"/>
  <!-- Match on ZeeRex XML record -->
  <xsl:template match="//e:explain">
-  <xsl:variable name="id"><xsl:value-of select="translate(concat(
+  <xsl:variable name="id"><xsl:value-of select="concat(
        e:serverInfo/e:host, ':',
        e:serverInfo/e:port, '/',
-       e:serverInfo/e:database), $ucletters, $lcletters)"/></xsl:variable>
+       e:serverInfo/e:database)"/></xsl:variable>
   <z:record id="{$id}" type="update">
 
    <!-- Well, not quite _anywhere_.  Only textual fields are indexed -->