We have a lot of data indexed with Solr 1.5. Since this version is no longer supported, we would like to upgrade to the Solr 4.0 trunk. I can easily load all Solr results into an .XML file (already made it larger than 40 GB) and then run xslt conversion to convert Solr XML results to Solr update XML file (using XSLTC, of course), but are there any Or another "standard" way to transfer data between solr nodes? Something like a dump.
Entering XSLT code here for reference:
<xsl:output method="xml" indent="yes"/>
<xsl:template match="/response/result">
<add>
<xsl:apply-templates/>
<commit/>
</add>
</xsl:template>
<xsl:template match="doc">
<doc>
<xsl:apply-templates/>
</doc>
</xsl:template>
<xsl:template match="arr/str">
<xsl:element name="field">
<xsl:attribute name="name">
<xsl:value-of select="../@name"/>
</xsl:attribute>
<xsl:value-of select="text()"/>
</xsl:element>
</xsl:template>
<xsl:template match="str">
<xsl:element name="field">
<xsl:attribute name="name">
<xsl:value-of select="@name"/>
</xsl:attribute>
<xsl:value-of select="text()"/>
</xsl:element>
</xsl:template>
source
share