You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Xi Shen <da...@gmail.com> on 2012/12/04 10:45:31 UTC

How to get the "Start" & "Rows" parameters from the DataSource instance?

Hi,

I created a class by extends the "DataSource" class. Now, I my data source
is able to get the query string from the "entity" tag, and populate data
into Solr.

On the "/dataimport" handler page, I see there are "Start" & "Rows" and
"Custom Parameters". How can I get them from the DataSource instance? I see
there's a "init" abstract method which takes the context as the parameter,
but I just have no idea how to extract these parameters from them.

Please give me some guide.


-- 
Regards,
David Shen

http://about.me/davidshen
https://twitter.com/#!/davidshen84