Add match of score
authorDennis Schafroth <dennis@indexdata.com>
Tue, 18 Sep 2012 13:59:47 +0000 (15:59 +0200)
committerDennis Schafroth <dennis@indexdata.com>
Tue, 18 Sep 2012 13:59:47 +0000 (15:59 +0200)
etc/solr-pz2.xsl

index e966711..bed0c9c 100644 (file)
     </pz:record>
   </xsl:template>
 
+  <xsl:template match="float[@name]">
+    <pz:metadata>
+       <xsl:attribute  name="type">
+         <xsl:value-of select="@name"/>
+       </xsl:attribute>
+       <xsl:value-of select="."/>
+    </pz:metadata>
+  </xsl:template>
+
   <xsl:template match="str[@name]">
     <pz:metadata>
        <xsl:attribute  name="type">