I've been performing some tests with GSearch, but I'm having some difficulties
indexing custom datastreams (probably because I have so little experience with
XSLT). I'm hoping that someone might be able to take a look at what I'm
messing with and tell me why it's wrong and possibly how to fix it.
Here's the code:
<xsl:for-each
select="foxml:datastream/foxml:datastreamVersion[last()]/foxml:xmlContent/custom/*">
<IndexField index="ANALYZED" store="YES" termVector="YES">
<xsl:attribute name="IFname">
<xsl:value-of select="name()" />
</xsl:attribute>
</IndexField>
</xsl:for-each>
The custom metadata is pretty simple with a layout similar to this:
<custom xsi:schemaLocation="...xml">
<title>data</title>
<author>
<last>data</last>
<first>data</first>
</author>
</custom>
Because this is just testing, for now I just want to dump everything from the
datastream into the index.
At present, my attempts have failed to get the datastream into the index. I've
been making sure to restart Tomcat after making modification, and I've been
using Luke to examine the index.
------------------------------------------------------------------------------
Register Now & Save for Velocity, the Web Performance & Operations
Conference from O'Reilly Media. Velocity features a full day of
expert-led, hands-on workshops and two days of sessions from industry
leaders in dedicated Performance & Operations tracks. Use code vel09scf
and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users