lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Miller <markrmil...@gmail.com>
Subject Re: StreamingUpdateSolrServer - Failure during indexing
Date Tue, 04 Sep 2012 15:08:42 GMT
You can override the method that logs the error - then parse the msg
for the doc ids?

On Tue, Sep 4, 2012 at 6:03 AM, Kissue Kissue <kissuenow@gmail.com> wrote:
> Hi Lance,
>
> As far as i can see, one document failing does not fail the entire update.
> From my logs i can see the error logged in the logs but indexing just
> continues to the next document. This happens with the
> StreamingUpdateSolrServer which is multithreaded.
>
> Thanks.
>
> On Tue, Jun 19, 2012 at 9:58 AM, Lance Norskog <goksron@gmail.com> wrote:
>
>> When one document fails, the entire update fails, right? Is there now
>> a mode where successful documents are added and failed docs are
>> dropped?
>>
>> If you want to know if a document is in the index, search for it!
>> There is no other guaranteed way.
>>
>> On Sun, Jun 17, 2012 at 3:14 PM, Jack Krupansky <jack@basetechnology.com>
>> wrote:
>> > You could instantiate an anonymous instance of StreamingUpdateSolrServer
>> > that has a "handleError" method that then parses the exception message to
>> > get the request URI. If there isn't enough information there, you could
>> add
>> > a dummy request option to your original request that was a document
>> > identifier of your own.
>> >
>> > Pseudo code:
>> >
>> >   StreamingUpdateSolrServer myServer = new
>> StreamingUpdateSolrServer(...){
>> >     void handleError( Throwable ex ){
>> >       super.handleError(ex);
>> >       // extract text from ex.getMessage()
>> >     }
>> >   };
>> >
>> > Included in the message text is "request: " followed by the URI for the
>> HTTP
>> > method, which presumably has the request options (unless they were
>> encoded
>> > in the body of the request as multipart form data.)
>> >
>> > -- Jack Krupansky
>> >
>> > -----Original Message----- From: Kissue Kissue
>> > Sent: Sunday, June 17, 2012 7:40 AM
>> > To: solr-user@lucene.apache.org
>> > Subject: StreamingUpdateSolrServer - Failure during indexing
>> >
>> >
>> > Hi,
>> >
>> > Using the StreamingUpdateSolrServer, does anybody know how i can get the
>> > list of documents that failed during indexing so maybe i can index them
>> > later? Is it possible? I am using Solr 3.5 with SolrJ.
>> >
>> > Thanks.
>>
>>
>>
>> --
>> Lance Norskog
>> goksron@gmail.com
>>



-- 
- Mark

http://www.lucidworks.com

Mime
View raw message