lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <>
Subject [Solr Wiki] Trivial Update of "DIHCustomTransformer" by Maurizio Cucchiara
Date Tue, 02 Oct 2012 10:29:43 GMT
Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.

The "DIHCustomTransformer" page has been changed by Maurizio Cucchiara:

Row map doesn't contain any string values

  				// Apply trim on this field
  				String columnName = field.get(DataImporter.COLUMN);
  				// Get this field's value from the current row
- 				String value = row.get(columnName);
+ 				Object value = row.get(columnName);
  				// Trim and put the updated value back in the current row
  				if (value != null)
- 					row.put(columnName, value.trim());
+ 					row.put(columnName, value.toString().trim());

View raw message