All, I now see that the dk.defxws.fgslucene.IndexDocumentHandler class that parses gsearch input documents (the XML documents with the <IndexField> elements) does not expect any structured xml as values to an IndexField.
If an IndexField element contains structured xml, it will result in a field being created called "NoFieldName" - and the contents will be the last field in the structured xml. Has anyone modified this class to handle structured xml values, and place them in the index document? Thanks, -Tim > -----Original Message----- > From: Tim Cornwell [mailto:[email protected]] > Sent: Friday, August 13, 2010 10:39 AM > To: [email protected] > Subject: [fcrepo-user] Storing structured xml data in a gSearch index. > > All, > > I am successfully using gSearch to build an index, and my > transforms seem to be working fine in test, but when I try to > build an <IndexField> that contains a block of xml from an > in-line datastream, the result does not appear in the index document. > > The result of my input transform to gSearch like this: > > <?xml version="1.0" encoding="UTF-8"?> > <IndexDocument > xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" > ...(correct stuff is in here)... > PID="hdl:2200%2F20081026132639452T" boost="3.5"> > <IndexField boost="2.5" termVector="NO" store="YES" > index="UN_TOKENIZED" > IFname="PID">hdl:2200%2F20081026132639452T</IndexField> > <IndexField termVector="NO" store="YES" index="UN_TOKENIZED" > IFname="op.state">Active</IndexField> > . > . > . > <IndexField termVector="NO" store="YES" index="UN_TOKENIZED" > IFname="ds.format.nsdldc"> > <nsdl_dc:nsdl_dc ...> > ... > <dc:title>Stuff On My Cat</dc:title> > (more elements & values) > </nsdl_dc:nsdl_dc> > </indexField> > . > . > . > </IndexDocument> > > > My intention is to store a small chunk of xml in the index, > but gSearch seems to not manage this input the way I'd like. > What I end up with is a field called "NoFieldName" that has > the value of the last element in the xml chunk. > > -Tim > > > -------------------------------------------------------------- > ---------------- > This SF.net email is sponsored by > > Make an app they can't live without > Enter the BlackBerry Developer Challenge > http://p.sf.net/sfu/RIM-dev2dev > _______________________________________________ > Fedora-commons-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/fedora-commons-users > ------------------------------------------------------------------------------ This SF.net email is sponsored by Make an app they can't live without Enter the BlackBerry Developer Challenge http://p.sf.net/sfu/RIM-dev2dev _______________________________________________ Fedora-commons-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
