Hey Guys,

I'm working on SOLR-1586, and looking at FieldType#toInternal, it just
dawned on me -- how should errors be thrown if a provided value for e.g., a
GeoPointField is not acceptable? As an example, I'm checking lats and lons
for valid ranges (-90 to 90, and -180 to 180, respectively), but I don't see
a way to notify that there's an input error. I can think of a way to do this
(right now I'm just using a Logger to LOG.warn), but is there a better, more
SOLR-standard way of doing this?

Cheers,
Chris

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Chris Mattmann, Ph.D.
Senior Computer Scientist
NASA Jet Propulsion Laboratory Pasadena, CA 91109 USA
Office: 171-266B, Mailstop: 171-246
Email: chris.mattm...@jpl.nasa.gov
WWW:   http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Assistant Professor, Computer Science Department
University of Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Reply via email to