In XML, "&" needs to be written as "&". In this case "amp" is the
"entity name".
-- Jack Krupansky
-----Original Message-----
From: Billy Newman
Sent: Tuesday, September 25, 2012 5:28 PM
To: solr-user@lucene.apache.org
Subject: DIH - 'url' element in 'entity' does not work with url parameters
Hello All.
I am trying to configure the DIH to import XML data from a URL. The
url attribute contains parameters in he link and I cannot get it to
work.
<dataConfig>
<dataSource type="URLDataSource" />
<document>
<entity name="test"
pk="link"
url="http://test.org/data?version=1.0&type=test"
processor="XPathEntityProcessor"
forEach="/test/entry">
<!-- fields -->
</entity>
</document>
</dataConfig>
I get an error saying 'expecting type in entity to end with ';'.
Any ideas?
Thanks in advance,
Billy