Some fixes for solr

Signed-off-by: Mathias Kaufmann <me@stei.gr>