lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mattmann, Chris A (388J)" <chris.a.mattm...@jpl.nasa.gov>
Subject FieldType#toInternal format error approach?
Date Sun, 22 Nov 2009 18:47:25 GMT
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.Mattmann@jpl.nasa.gov
WWW:   http://sunset.usc.edu/~mattmann/
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Adjunct Assistant Professor, Computer Science Department
University of Southern California, Los Angeles, CA 90089 USA
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++




Mime
View raw message