lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shalin Shekhar Mangar (JIRA)" <j...@apache.org>
Subject [jira] Updated: (SOLR-966) Enhance the map() function to take in multiple tuples
Date Fri, 30 Jan 2009 10:26:00 GMT

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

Shalin Shekhar Mangar updated SOLR-966:
---------------------------------------

    Attachment: SOLR-966.patch

Changed equals and hashcode method to take the default value into consideration.

I found a bug in the hashcode function:
{code}Float.floatToIntBits(min);{code}
which should have been
{code}h += Float.floatToIntBits(min);{code}

Since my knowledge of hashing is limited, it would be nice if someone can review this.

> Enhance the map() function to take in multiple tuples
> -----------------------------------------------------
>
>                 Key: SOLR-966
>                 URL: https://issues.apache.org/jira/browse/SOLR-966
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Noble Paul
>            Assignee: Shalin Shekhar Mangar
>             Fix For: 1.4
>
>         Attachments: SOLR-966.patch, SOLR-966.patch
>
>
> The map function currently takes in only one min,max target. This makes it impossible
to map it to multiple values . 
> It should be possible to pass on multiple sets of values
> example
> {code}
> map(x,0,0,10,1,1,20,2,2,50)
> {code}
> it should allow an n number of float values (where n%3 = 0)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message