lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From B B <bbny...@gmail.com>
Subject DIH URLDataSource paginating with $nextUrl & $hasMore
Date Fri, 16 Sep 2011 16:59:00 GMT
Has anyone successfully setup DIH URLDataSource to paginate imports
using  $nextUrl & $hasMore ?:

http://wiki.apache.org/solr/DataImportHandler#Configuration_in_data-config.xml-1

It's not working for me, the data imports on the first page, but no
subsequent calls to the data source are processed.  Here is the
excerpt from my data-config.xml:
<field column="$hasMore" xpath="/results/page/has_more" />
<field column="$nextUrl" xpath="/results/page/next_url" />

The response from the data source has:
<results>
   <pagination>
       <has_more>true</has_more>
       <next_url>http://host/foo/import.xml?start=2</next_url>
   </pagination>
   <docs>
   ...
   </docs>
</results>

Mime
View raw message