Skip to content
Docs Try Aspire
Docs Try

SolrResource

Handle
📦 CommunityToolkit.Aspire.Hosting.Solr v13.4.0
interface SolrResource
extends IComputeResource,
IExpressionValue,
IManifestExpressionProvider,
IResource,
IResourceWithArgs,
IResourceWithConnectionString,
IResourceWithEndpoints,
IResourceWithEnvironment,
IResourceWithProbes,
IResourceWithWaitSupport,
IValueProvider,
IValueWithReferences {
readonly connectionStringExpression: ReferenceExpression;
coreName: string;
readonly host: EndpointReferenceExpression;
readonly port: EndpointReferenceExpression;
readonly primaryEndpoint: EndpointReference;
readonly uriExpression: ReferenceExpression;
withConfigset(
configSetName: string,
configSetPath: string): SolrResource;
withDataBindMount(
source: string,
isReadOnly?: boolean): SolrResource;
withDataVolume(
name?: string,
isReadOnly?: boolean): SolrResource;
}

Properties

property connectionStringExpression ReferenceExpression get
Gets the connection string expression for the Solr server.
property coreName string get · set
The Solr core name.
property host EndpointReferenceExpression get
Gets the host endpoint reference for this resource.
property port EndpointReferenceExpression get
Gets the port endpoint reference for this resource.
property primaryEndpoint EndpointReference get
Gets the primary endpoint for the Solr server.
property uriExpression ReferenceExpression get
Gets the connection URI expression for the Solr server.

Methods

method withConfigset builder
Specifies the path to the config set directory.
withConfigset(
configSetName: string,
configSetPath: string): SolrResource
configSetName string
configSetPath string
SolrResource
method withDataBindMount builder
Adds a bind mount for the data folder to a Solr container resource.
withDataBindMount(
source: string,
isReadOnly?: boolean): SolrResource
source string
isReadOnly boolean optional = False
SolrResource
method withDataVolume builder
Adds a named volume for the data folder to a Solr container resource.
withDataVolume(
name?: string,
isReadOnly?: boolean): SolrResource
name string optional
isReadOnly boolean optional = False
SolrResource