Atef created SOLR-11972:
---------------------------

             Summary: range of numeric values with unit in Solr
                 Key: SOLR-11972
                 URL: https://issues.apache.org/jira/browse/SOLR-11972
             Project: Solr
          Issue Type: Improvement
      Security Level: Public (Default Security Level. Issues are Public)
          Components: Schema and Analysis
    Affects Versions: 6.6
            Reporter: Atef


My problem is that i have documents containing a numeric value and a unit like 
this:

weight:100g

weight:1000kg

And i want to make querys like this:

weight:[5g TO 100KG]

Of course this doent work as easy as it sounds, the values are saved as 
strings. I did some research and came up with thisĀ 
[https://dzone.com/articles/build-a-custom-solr-filter-to-handle-unit-conversions].

This worked out pretty well, i can search for: weight:100000g and get results 
containing weight:100kg, nice. But i cant figure out how to extend this, to 
make a range-search possible



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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

Reply via email to