On 25 March 2014 01:15, eShard <zim...@yahoo.com> wrote:
> I confirmed the xpath is correct with a third party XPath visualizer.
> /atom:feed/atom:entry parses the xml correctly.
>
> Can anyone confirm or deny that the dataimporthandler can handle an atom
> feed?

Yes, an ATOM feed can be consumed by DIH, as noted in the documentation.
We have done this in the past, and a Google search turns up examples, e.g.,
http://blog.florian-hopf.de/2012/05/importing-atom-feeds-in-solr-using-data.html

Have not dealt with namespaces, but here is a line from the documentation
that s probably relevant to your ATOM feed:
It does not support namespaces, but it can handle xmls with namespaces.
When you provide the xpath, just drop the namespace and give the rest
(eg if the tag is '<dc:subject>' the mapping should just contain 'subject').

Other than that, I still see nothing wrong with your DIH data configuration. The
message from the dataimport shows that it did make a request to the
URLDataSource. If things still do not work:
* Can you double-check that the specified URL in the "url" attribute of the
   entity does indeed retrieve the desired XML.
* I am pretty sure that you have checked this, but are your fields properly
  defined in the Solr schema?

Regards,
Gora

Reply via email to