You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Christine Poerschke (JIRA)" <ji...@apache.org> on 2015/11/13 12:44:10 UTC

[jira] [Commented] (SOLR-8287) TrieLongField and TrieDoubleField should override toNativeType

    [ https://issues.apache.org/jira/browse/SOLR-8287?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15003887#comment-15003887 ] 

Christine Poerschke commented on SOLR-8287:
-------------------------------------------

The {{TrieDoubleField}} change is similar to what {{TrieFloatField}} currently has, that looks good to me.

The {{TrieLongField}} change is similar to what {{TrieIntField}} currently has, but I'm wondering:
* {{TrieIntField.toNativeType}} attempts {{Float.parseFloat}} if the {{Integer.parseInt}} attempt throws a {{NumberFormatException}}
* in the current patch {{TrieLongField.toNativeType}} attempts {{Float.parseFloat}} if the {{Long.parseLong}} attempt throws a {{NumberFormatException}} but might {{Double.parseDouble}} be attempted instead?

> TrieLongField and TrieDoubleField should override toNativeType
> --------------------------------------------------------------
>
>                 Key: SOLR-8287
>                 URL: https://issues.apache.org/jira/browse/SOLR-8287
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Ishan Chattopadhyaya
>         Attachments: SOLR-8287.patch
>
>
> Although the TrieIntField and TrieFloatField override the toNativeType() method, the TrieLongField and TrieDoubleField do not do so. 
> This method is called during atomic updates by the AtomicUpdateDocumentMerger for the "set" operation.



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

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