Skip to content

print solr responseHeader errors #4

@felixlohmeier

Description

@felixlohmeier

When using TolerantUpdateProcessorFactory in Solr updateRequestProcessorChain like this:

    <processor class="solr.TolerantUpdateProcessorFactory">
      <int name="maxErrors">-1</int>
    </processor>

Solr sends errors in Response Header:

Suppresses errors for individual add/delete commands within a single request. Instead of failing on the first error, at most maxErrors errors (or unlimited if -1==maxErrors) are logged and recorded the batch continues. The client will receive a status==200 response, which includes a list of errors that were tolerated.

Plain curl:

{
  "responseHeader":{
    "errors":[{
        "type":"ADD",
        "id":"AU00000001",
        "message":"ERROR: [doc=AU00000001] Error adding field 'broadcastDate'='9183-80' msg=Couldn't parse date because: Improperly formatted datetime: 9183-80"}],
    "maxErrors":-1,
    "status":0,
    "QTime":1}}

Solrbulk:

INFO[0378] final commit: 200 OK

Would it be possible for Solrbulk to display these error messages from the response header?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions