Thank you Binoy.  I like simple and this should work well.

On Tue, Mar 15, 2016 at 11:42 AM, Binoy Dalal <binoydala...@gmail.com>
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 McCarthy <smccar...@upei.ca> wrote:
>
> > 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
> >
> --
> Regards,
> Binoy Dalal
>

Reply via email to