lucene-solr-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
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:
http://wiki.apache.org/solr/DIHCustomTransformer?action=diff&rev1=11&rev2=12

Comment:
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());
  			}
  		}
  

Mime
View raw message