Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

AddSolr

Method
📦 CommunityToolkit.Aspire.Hosting.Solr v13.6.1
func (DistributedApplicationBuilder) AddSolr(
name string,
options ...*AddSolrOptions,
) SolrResource

Signature

methodAddSolrbuilder
Adds an Apache Solr container resource to the distributed application.
AddSolr(
name string,
options ...*AddSolrOptions,
) SolrResource
namestringThe name of the resource. This name will be used as the connection string name when referenced in a dependency.
options...*AddSolrOptionsOptional settings, described under Options.

Optional parameters are passed in a trailing options ...*AddSolrOptions argument.

Port*float64The host port for Solr.
CoreName*stringThe name of the core to create.
SolrResource

A reference to the IResourceBuilder.

Returns a handle; failures surface later via Err().

Applies to

This method applies to the following types:

typeDistributedApplicationBuilder