SOLR-888 -- DateFormatTransformer cannot convert non-string type

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@725618 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2008-12-11 08:34:08 +00:00
parent 2b931ae33e
commit 7549d04c32
2 changed files with 4 additions and 2 deletions

View File

@ -68,6 +68,9 @@ Bug Fixes
9. SOLR-893: Unable to delete documents via SQL and deletedPkQuery with deltaimport
(Dan Rosher via shalin)
10. SOLR-888: DateFormatTransformer cannot convert non-string type
(Amit Nithian via shalin)
Documentation
----------------------

View File

@ -66,8 +66,7 @@ public class DateFormatTransformer extends Transformer {
}
aRow.put(column, results);
} else {
String value = (String) o;
aRow.put(column, process(value, fmt));
aRow.put(column, process(o.toString(), fmt));
}
} catch (ParseException e) {
LOG.warn( "Could not parse a Date field ", e);