I'm wondering what the logic behind eating this exception might be? Is
there a good reason for it? (I'm having trouble thinking of one)

@Override
public IndexableField createField(SchemaField field, Object value) {
  IndexableField f = null;
  try {
    f = fromString(field, String.valueOf(value));
  } catch (Exception e) {
    log.warn("Error parsing pre-analyzed field '" + field.getName() + "'", e);
    return null;
  }
  return f;
}

It seems to me I'd want to know if the contents of a preanalyzed field were
unparsable every bit as much as I'd want to know about a badly formatted
date? Just came to the realization that a unit test for some code I'm
working was giving false positives...

-Gus

Reply via email to