lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kevin Risden (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (SOLR-10486) Add Length Conversion Evaluators
Date Tue, 18 Apr 2017 15:57:41 GMT

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

Kevin Risden commented on SOLR-10486:
-------------------------------------

A bit late but a thought here: Isn't there an existing unit conversion library we could use
here instead of reinventing the wheel? We might get other unit conversions for free besides
just length (pressure, weight, etc)

> Add Length Conversion Evaluators
> --------------------------------
>
>                 Key: SOLR-10486
>                 URL: https://issues.apache.org/jira/browse/SOLR-10486
>             Project: Solr
>          Issue Type: New Feature
>      Security Level: Public(Default Security Level. Issues are Public) 
>            Reporter: Joel Bernstein
>         Attachments: SOLR-10486.patch, SOLR-10486.patch
>
>
> Based on the work in SOLR-10485 I think it makes sense to add Conversion evaluators.
I think a good place to start is with the conversions listed here:
> https://www.learner.org/interactives/metric/conversion_chart.html#1
> This ticket will add length conversions and lay down the initial syntax.
> Sample syntax:
> {code}
> select(eval(), convert(inches, meters, 22) as meters)
> {code}
> This will return a single tuple with 22 inches converted to meters.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

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


Mime
View raw message