Re: Concurrent DB updates and delta import misses few records

2010-09-22 Thread Shashikant Kore
? --shashi On Wed, Sep 22, 2010 at 6:47 PM, Shawn Heisey wrote: > On 9/22/2010 1:39 AM, Shashikant Kore wrote: > >> Hi, >> >> I'm using DIH to index records from a database. After every update on >> (MySQL) DB, Solr DIH is invoked for delta import. In my t

Concurrent DB updates and delta import misses few records

2010-09-22 Thread Shashikant Kore
Hi, I'm using DIH to index records from a database. After every update on (MySQL) DB, Solr DIH is invoked for delta import. In my tests, I have observed that if db updates and DIH import is happening concurrently, import misses few records. Here is how it happens. The table has a column 'lastUp

Re: DataImportHandlerException for custom DIH Transformer

2010-09-08 Thread Shashikant Kore
Resurrecting an old thread. I faced exact problem as Tommy and the jar was in {solr.home}/lib as Noble had suggested. My custom transformer overrides following method as per the specification of Transformer class. public Object transformRow(Map row, Context context); But, in the cod

Re: Retrieving a field from all result docuemnts & couple of more queries

2009-09-17 Thread Shashikant Kore
Hoss, As I mentioned previously, I prefer to do this with as little java code as possible. That's the motivation for me to take a look at solr. Here is the code snippet. OpenBitSet resultBitset = new OpenBitSet(this.searcher.maxDoc()); this.searcher.search(query, new HitCollector() {

Re: Retrieving a field from all result docuemnts & couple of more queries

2009-09-16 Thread Shashikant Kore
download the Solr Source code and take a look at the > SolrIndexWriter to begin with! > > It's in the package - org.apache.solr.update > > Thanks > Rajan > > On Wed, Sep 16, 2009 at 5:42 PM, Shashikant Kore wrote: > >> Thanks, Abhay. >> >> Can some

Re: Retrieving a field from all result docuemnts & couple of more queries

2009-09-16 Thread Shashikant Kore
>         >       >      * * >         >         > >         >         >       >     > > > > Regards, > Abhay > > On Tue, Sep 15, 2009 at 6:41 PM, Shashikant Kore wrote: > >> Hi, >> >> I am familiar with Lucene and trying o

Retrieving a field from all result docuemnts & couple of more queries

2009-09-15 Thread Shashikant Kore
Hi, I am familiar with Lucene and trying out Solr. I have index which was created outside solr. The index is fairly simple with two field - document_id & content. The query result needs to return all the document IDs. The result need not be ordered by the score. For this, in Lucene, I use custom