How about something like? unit:feet AND measure:[4 to 7]
> From: [email protected] > Date: Sat, 29 Nov 2014 09:17:34 +0000 > Subject: Re: Index Metadata in a Numeric Field > To: [email protected] > > OK, I will try to do that. But What Query can I use to search? In this way, > I will need to search by measure with a Range Query and how about the > respective unit measure? What query can I use? > > Thank you > > Em Fri Nov 28 2014 at 17:34:24, Prescott Nasser <[email protected]> > escreveu: > > > How about two separate fields? One for the value, one for the unit of > > measure. You might still normalize your measurements so that you can still > > search across measurements > > > > Sent from my Windows Phone > > ________________________________ > > From: Daniel Masarin<mailto:[email protected]> > > Sent: 11/28/2014 4:32 AM > > To: [email protected]<mailto:[email protected]> > > Subject: Re: Index Metadata in a Numeric Field > > > > Hello, Jonathan > > > > I thought to do this way but I want to filter the results by the measure > > units, if I index all in the same field without the unit how can I find by > > units later? My problem is because I have many units to represent and it > > can represent many quantities. Do you understand my problem? > > > > Thank you. > > > > 2014-11-26 14:55 GMT-02:00 Daniel Masarin <[email protected]>: > > > > > Hello, Mr > > > > > > I was trying to index some metadata in a numeric field of lucene .net but > > > I don’t know how to do it. I built a class to find measures on > > > descriptions, that class returns a list of measures in these form: > > > “150{inch} 200{mm}” etc. And I want to index these values to search for > > > them simultaneously, numeric value and the measure unit. How can I do > > that? > > > > > > Thank you. > > > > >
