You could check the value of pointNumBytes in the FieldInfo. Ints/Floats will use 4 bytes while Longs/Doubles will use 8 bytes. However there is no way to discern doubles from longs or floats from ints, applications need to maintain some schema information on top of Lucene.
Le mar. 28 mars 2017 à 17:29, Tom Mortimer <[email protected]> a écrit : > Hi, > > Probably a daft question, but is there any way to get the type (int, long, > float, etc.) of a PointValues field in an index, if you don't already know > it? > > cheers, > Tom > > tel +44 8700 118334 <+44%20870%20011%208334> : mobile +44 7876 741014 > <+44%207876%20741014> : skype tommortimer >
