You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael Garski (Updated) (JIRA)" <ji...@apache.org> on 2011/12/29 03:29:30 UTC

[jira] [Updated] (SOLR-2987) ExternalFileField With Invalid TrieField Key

     [ https://issues.apache.org/jira/browse/SOLR-2987?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael Garski updated SOLR-2987:
---------------------------------

    Attachment: eff_key_error.patch

Patch that moves key lookup to within same try/catch as the value parsing. Corrected exception message to include the field name.
                
> ExternalFileField With Invalid TrieField Key
> --------------------------------------------
>
>                 Key: SOLR-2987
>                 URL: https://issues.apache.org/jira/browse/SOLR-2987
>             Project: Solr
>          Issue Type: Bug
>          Components: search
>    Affects Versions: 3.5, 3.6, 4.0
>            Reporter: Michael Garski
>            Priority: Minor
>         Attachments: eff_key_error.patch
>
>
> The current error handling in reading an external file field only catches an error when parsing the float value on a line, which then skips that line.  If the key field is a trie field, such as a TrieIntField, and the key value in the file cannot be parsed to an int, loading of the entire file fails.  
> Shouldn't the call to get the indexed value of the key should be in the same try/catch as the float parsing for the line?

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org