uri = uri.substring(0, uri.length() - 1);
}
final String pattern = uri + "/**/*";
return FilterMapping.filter(pattern)
.param("path-prefix", uri)
.through(new SolrDispatchFilter() {
@Override
protected CoreContainer createCoreContainer() {
logger.info("Solr is listening at: {}", pattern);
// Don't initialize cores twice just use the Spring one.
return solrCores;