[
https://issues.apache.org/jira/browse/SOLR-8984?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16087238#comment-16087238
]
ASF GitHub Bot commented on SOLR-8984:
--------------------------------------
GitHub user AnnAddicks opened a pull request:
https://github.com/apache/lucene-solr/pull/220
SOLR-8984 Add field name to exception message.
This is an old issue, but I figured it was something simple to start
learning your codebase. I added the field name to the exception message and
used the syntax used in another exception then updated the tests.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/AnnAddicks/lucene-solr master
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/lucene-solr/pull/220.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #220
----
commit 383f4ec3cabb022bb1fea4959e574b40c3f3ed01
Author: Ann Addicks <[email protected]>
Date: 2017-07-14T12:09:25Z
SOLR-8984 Add field name to exception message.
----
> Indexing into enumField with unknown value provides error with value but not
> which field
> ----------------------------------------------------------------------------------------
>
> Key: SOLR-8984
> URL: https://issues.apache.org/jira/browse/SOLR-8984
> Project: Solr
> Issue Type: Improvement
> Components: clients - java
> Affects Versions: 5.4.1
> Reporter: Lanny Ripple
> Priority: Minor
>
> I am indexing 20M documents and using several dozen enumFields. Occasionally
> I'll hit the error
> {code}
> Solr add exception: Error from server at
> http://sr208:8983/solr/demog_dlx-160413_shard15_replica2: Unknown value for
> enum field: A
> {code}
> With no indication of _which_ field this is part of it is very difficult to
> easily fix the problem. This error message should indicate both field and
> offending value.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]