lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mikhail Khludnev <mkhlud...@griddynamics.com>
Subject Re: ignoring bad documents during index
Date Fri, 02 Jan 2015 02:44:25 GMT
Hello,
Please find below

On Thu, Jan 1, 2015 at 11:59 PM, SolrUser1543 <ostap26@gmail.com> wrote:

> 1. If it is possible to ignore such an error and continue to index D4 ?
>
this can be done by catching and swallowing an exception in custom
UpdateRequestProcessor


> 2. What will the best way to add an information about failed documents ? I
> thought about an update processor , with try / catch in addCommand and in
> case of exception add a doc ID to response .
> Or it may be better to implement a component or response writer to add the
> info ?
>
it turns that you can add this info into SolrQueryResponse.getValues() even
in custom UpdateRequestProcessor and it should be responded back.


>
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/ignoring-bad-documents-during-index-tp4176947.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>



-- 
Sincerely yours
Mikhail Khludnev
Principal Engineer,
Grid Dynamics

<http://www.griddynamics.com>
<mkhludnev@griddynamics.com>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message