Re: Solr and units

2016-03-15 Thread Shane McCarthy
Thank you Binoy. I like simple and this should work well. On Tue, Mar 15, 2016 at 11:42 AM, Binoy Dalal wrote: > The simplest thing would be to index a separate field for the unit for each > distinct value you're storing. > > On Tue, Mar 15, 2016 at 7:55 PM Shane

Re: Solr and units

2016-03-15 Thread Binoy Dalal
The simplest thing would be to index a separate field for the unit for each distinct value you're storing. On Tue, Mar 15, 2016 at 7:55 PM Shane McCarthy wrote: > I am curious if it is possible to have a unit associated with a number in > Solr. I have a field currently that

Solr and units

2016-03-15 Thread Shane McCarthy
I am curious if it is possible to have a unit associated with a number in Solr. I have a field currently that has a value of x where x is an integer or float, can I associate a unit with that? So I know the value is x gram or x Watt. Thank you, Shane