SOLR XML Import combining multiple children -
i'm attempting load xml solr using dataimporthandler, , have no problems getting data in, need transforming format. have tried can think of , googled possible solutions, , stuck. source xml looks this:
<authorlist completeyn="y"> <author validyn="y"> <lastname>mohammed</lastname> <forename>arshed abdulhamed</forename> <initials>aa</initials> </author> <author validyn="y"> <lastname>haris</lastname> <forename>sallehuddin mohamed</forename> <initials>sm</initials> </author> <author validyn="y"> <lastname>nuawi</lastname> <forename>mohd zaki</forename> <initials>mz</initials> </author> </authorlist>
and end this:
<str name="author_1">arshed mohammed</str> <str name="author_2">sallehuddin mohamed harris</str> <str name="author_3">mohd zaki nuawi</str>
i'm thinking combination of dih's scripttransformer , templatetransformer, , schema.xml's "dynamicfield" trick, i'm hitting wall. has else run problem this?
thank in advance.
Comments
Post a Comment