You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-commits@lucene.apache.org by Apache Wiki <wi...@apache.org> on 2012/12/25 18:23:49 UTC
[Solr Wiki] Update of "DataImportHandler" by VjacheslavIgnatyev
Dear Wiki user,
You have subscribed to a wiki page or wiki category on "Solr Wiki" for change notification.
The "DataImportHandler" page has been changed by VjacheslavIgnatyev:
http://wiki.apache.org/solr/DataImportHandler?action=diff&rev1=331&rev2=332
public String evaluate(String expression, Context context) {
List<Object> l = parseParams(expression, context.getVariableResolver());
if (l.size() != 1) {
- throw new RuntimeException("'toLowerCase' must have only one parameter ");
+ throw new RuntimeExme ception("'toLowerCase' must have only one parameter ");
}
return l.get(0).toString().toLowerCase(Locale.ROOT);
}
}
}}}
+
+ Few [[http://ignatyev-dev.blogspot.com/2012/12/solr-functions-in-action.html|functions]] '''decode''', '''load''', '''run''' which can help with complex SQL statements.
+
=== Accessing request parameters ===
All http request parameters sent to SOLR when using the dataimporter can be accessed using the 'request' namespace eg: `'${dataimporter.request.command}'` will return the command that was run.