Re: DataImport using last_indexed_id or getting max(id) quickly

2012-07-13 Thread Erick Erickson
;Karsten > > View this message in context: > http://lucene.472066.n3.nabble.com/DataImport-using-last-indexed-id-or-getting-max-id-quickly-tp3993763p3994560.html > > > Original-Nachricht >> Datum: Wed, 11 Jul 2012 20:59:10 -0700 (PDT) >> Von: ave

Re: DataImport using last_indexed_id or getting max(id) quickly

2012-07-12 Thread karsten-solr
using-last-indexed-id-or-getting-max-id-quickly-tp3993763p3994560.html Original-Nachricht > Datum: Wed, 11 Jul 2012 20:59:10 -0700 (PDT) > Von: avenka > An: solr-user@lucene.apache.org > Betreff: Re: DataImport using last_indexed_id or getting max(id) quickly > Thanks. Ca

Re: DataImport using last_indexed_id or getting max(id) quickly

2012-07-11 Thread avenka
Thanks. Can you explain more the first TermsComponent option to obtain max(id)? Do I have to modify schema.xml to add a new field? How exactly do I query for the lowest value of "1 - id"? -- View this message in context: http://lucene.472066.n3.nabble.com/DataImport-using-last-indexed-id-

Re: DataImport using last_indexed_id or getting max(id) quickly

2012-07-11 Thread karsten-solr
012 10:25:55 -0700 (PDT) > Von: avenka > An: solr-user@lucene.apache.org > Betreff: DataImport using last_indexed_id or getting max(id) quickly > My understanding is that the DIH in solr only enters last_indexed_time in > dataimport.properties, but not say last_indexed_id for a primar

DataImport using last_indexed_id or getting max(id) quickly

2012-07-08 Thread avenka
My understanding is that the DIH in solr only enters last_indexed_time in dataimport.properties, but not say last_indexed_id for a primary key 'id'. How can I efficiently get the max(id) (note that 'id' is an auto-increment field in the database) ? Maintaining max(id) outside of solr is brittle and