Garth Grimm created SOLR-8945:
---------------------------------

             Summary: When numerical field is sent an incorrect data type, 
exception could be more descriptive.
                 Key: SOLR-8945
                 URL: https://issues.apache.org/jira/browse/SOLR-8945
             Project: Solr
          Issue Type: Improvement
            Reporter: Garth Grimm
            Priority: Minor


While indexing from a database, solr automatically created some id fields as 
`tlong`. These fields could either contain a number or a message like 'Not 
Available' if that particular id/number was not present.
In such a case, solr threw an error similar to:

ERROR: [doc=People-139728] Error adding field 'Office_PhoneNo'='603 103' 
msg=For input string: "603 103"

In such a case, the intuitive thing would be to throw a NumberFormatException 
so that the user can easily figure out that a number field is receiving 
non-numeric values.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to