Re: How to override rollback behavior in DIH

2014-01-17 Thread Peter Keegan
Following up on this a bit - my main index is updated by a SolrJ client in another process. If the DIH fails, the SolrJ client is never informed of the index rollback, and any pending updates are lost. For now, I've made sure that the DIH processor never throws an exception, but this makes it a

Re: How to override rollback behavior in DIH

2014-01-17 Thread Shalin Shekhar Mangar
Can you try using onError=skip on your entities which use this data source? It's been some time since I looked at the code so I don't know if this works with data source. Worth a try I guess. On Fri, Jan 17, 2014 at 7:20 PM, Peter Keegan peterlkee...@gmail.com wrote: Following up on this a bit

Re: How to override rollback behavior in DIH

2014-01-17 Thread Peter Keegan
I'm actually doing the 'skip' on every successful call to 'nextRow' with this trick: row.put($externalfield,null); // DocBuilder.addFields will skip fields starting with '$' because I'm only creating ExternalFieldFields. However, an error could also occur in the 'init' call, so exceptions have

RE: How to override rollback behavior in DIH

2014-01-17 Thread Dyer, James
Of Peter Keegan Sent: Friday, January 17, 2014 7:51 AM To: solr-user@lucene.apache.org Subject: Re: How to override rollback behavior in DIH Following up on this a bit - my main index is updated by a SolrJ client in another process. If the DIH fails, the SolrJ client is never informed

Re: How to override rollback behavior in DIH

2014-01-17 Thread Peter Keegan
...@gmail.com [mailto:pkeegan01...@gmail.com] On Behalf Of Peter Keegan Sent: Friday, January 17, 2014 7:51 AM To: solr-user@lucene.apache.org Subject: Re: How to override rollback behavior in DIH Following up on this a bit - my main index is updated by a SolrJ client in another process