I think Upayavira's suggestion of writing a filter factory fits what you're asking for. However, the other end of cleverness is to simple use solr.TrieIntField and store everything in MB. So for 1TB you'd write 51200. A range query for 256MB to 1GB would be field:[256 TO 1024].
Conversion from MB to your displayed unit (2TB, for example) would happen in the application layer. But using trie ints would be simple and efficient. - Ryan On Mon, Nov 11, 2013 at 7:06 AM, eakarsu <eaka...@gmail.com> wrote: > Thanks Upayavira > > It seems it needs too much work. I will have several more fields that will > have unit values. > Do we have more quicker way of implementing it? > > We have Currency filed coming as default with SOLR. Can we use it? > Creating conversion rate table for each field? What I am expecting from > units is similar to currency field > > Erol Akarsu > > > > > -- > View this message in context: > http://lucene.472066.n3.nabble.com/Unit-of-dimension-for-solr-field-tp4100209p4100295.html > Sent from the Solr - User mailing list archive at Nabble.com. >