[ https://issues.apache.org/jira/browse/SOLR-966?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12664823#action_12664823 ]
Shalin Shekhar Mangar commented on SOLR-966: -------------------------------------------- I guess the problem (feature?) of map is that if the field value is not between min and max, it outputs the value of the field. That makes it difficult to use map for scoring on numeric field values. An alternative to Noble's approach can be to add an optional fifth argument for a default value. If value does not fall between min and max, map can output the default value. However, both these approaches are mutually exclusive. Thoughts? > 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 > Fix For: 1.4 > > > 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.