I cannot figure out how to use the LoggingConnection example to get the URL that SolrNET is sending to Solr. I am unable to retrieve this URL from the jetty logs...because well, our URLs are *very* long and Jetty truncates them.
foreach ( SolrServerElement core in solrServers )
{
var coreConnectionId = core.Id + typeof( SolrConnection );
For<ISolrConnection>().Add<LoggingConnection>()
.Named( coreConnectionId )
.Ctor<SolrConnection>( "connection" ).Is( new SolrConnection( core.Url ) {Cache = new NullCache()} );
}
Doesn't work. I also tried:
For<ISolrConnection>().Add<LoggingConnection>()
.Named( "l" + coreConnectionId )
.Ctor<SolrConnection>( "connection" ).Is( i => i.IsNamedInstance(coreConnectionId) );