serviceCollection.AddSolrExpress<TechProduct>(builder => builder
.UseHostAddress("http://localhost:8983/solr/techproducts")
.UseOptions(/*options instance*/) // Optionally
.UseSolr5()); // Or UserSolr4()
In some controller/service/however
public ClassConstructor(IDocumentCollection<TechProduct> techProducts)
techProducts = new DocumentCollectionBuilder<TechProduct>()
.UseHostAddress("http://localhost:8983/solr/techproducts")
.UseOptions(/*options instance*/) // Optionally
.UseSolr5() // Or UserSolr4()