SolrBuilderExtensions Methods
Class Methods 1 member
Extension methods for adding and configuring a Solr resource.
AddSolr(IDistributedApplicationBuilder, string, int?, string?) Section titled AddSolr(IDistributedApplicationBuilder, string, int?, string?) extension IResourceBuilder<SolrResource> Adds an Apache Solr container resource to the distributed application.
public static class SolrBuilderExtensions{ public static IResourceBuilder<SolrResource> AddSolr( this IDistributedApplicationBuilder builder, string name, int? port = null, string? coreName = null) { // ... }}Parameters
builder IDistributedApplicationBuilder The Hosting.IDistributedApplicationBuilder. name string The name of the resource. This name will be used as the connection string name when referenced in a dependency. port int? optional The host port for Solr. coreName string? optional The name of the core to create. Returns
IResourceBuilder<SolrResource> A reference to the ApplicationModel.IResourceBuilder`1.