Skip to content
DocsTry Aspire
DocsTry

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

propertyconnectionStringExpressionReferenceExpressionget
Gets the connection string expression for the Solr server.
propertycoreNamestringget · set
The Solr core name.
propertyhostEndpointReferenceExpressionget
Gets the host endpoint reference for this resource.
propertyportEndpointReferenceExpressionget
Gets the port endpoint reference for this resource.
propertyprimaryEndpointEndpointReferenceget
Gets the primary endpoint for the Solr server.
propertyuriExpressionReferenceExpressionget
Gets the connection URI expression for the Solr server.

Methods

methodwithConfigsetbuilder
Specifies the path to the config set directory.
withConfigset(
configSetName: string,
configSetPath: string): SolrResource
configSetNamestring
configSetPathstring
SolrResource
methodwithDataBindMountbuilder
Adds a bind mount for the data folder to a Solr container resource.
withDataBindMount(
source: string,
isReadOnly?: boolean): SolrResource
sourcestring
isReadOnlybooleanoptional= False
SolrResource
methodwithDataVolumebuilder
Adds a named volume for the data folder to a Solr container resource.
withDataVolume(
name?: string,
isReadOnly?: boolean): SolrResource
namestringoptional
isReadOnlybooleanoptional= False
SolrResource