Hi,

What is the error that you are getting ?
ROWNUM works fine with DIH, I have tried and tested it with Solr 3.1.

One thing that comes to my mind is the query that you are using to
implement ROWNUM.
Do you replaced the "<" in the query by a "&lt;" in dataconfig.xml ?
like "ROMNUM &lt; =100" ?

On Thu, May 3, 2012 at 4:11 PM, srini <softtec...@gmail.com> wrote:

> I am doing database import using solr DIH. I would like to limit the solr
> indexing to specific number. In other words If Solr reaches indexing 100
> records I want to database import to stop importing.
>
> Not sure if there is any particular setting that would tell solr that I
> only
> want to import 100 rows from database and index those 100 records.
>
> I tried to give select query with ROMNUM<=100 (using oracle) in
> data-config.xml, but it gave error. Any ideas!!!
>
> Thanks in Advance
> Srini
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/how-to-limit-solr-indexing-to-specific-number-of-rows-tp3960344.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>



-- 
Thanks and Regards
Rahul A. Warawdekar

Reply via email to