var cores = new SolrServers {
new SolrServerElement {
Id = "coreEntity1",
DocumentType = typeof (Entity1).AssemblyQualifiedName,
Url = "http://localhost:8983/solr/coreEntity1",
},
new SolrServerElement {
Id = "coreEntity2",
DocumentType = typeof (Entity2).AssemblyQualifiedName,
Url = "http://localhost:8983/solr/coreEntity2",
},
};
//register solr instance
builder.RegisterModule(
new SolrNetModule(cores)
{
HttpWebRequestFactory = new BasicAuthHttpWebRequestFactory(
"username",
"password",
delegate { return true; }) //dont validate SSL (Self Signed Cert)
});
--
You received this message because you are subscribed to the Google Groups "SolrNet" group.
To unsubscribe from this group and stop receiving emails from it, send an email to solrnet+u...@googlegroups.com.
To post to this group, send email to sol...@googlegroups.com.
Visit this group at http://groups.google.com/group/solrnet.
For more options, visit https://groups.google.com/d/optout.