# SolrResource.WithConfigset

- Module: [CommunityToolkit.Aspire.Hosting.Solr](/reference/api/go/communitytoolkit.aspire.hosting.solr.md)
- Defined on: [SolrResource](/reference/api/go/communitytoolkit.aspire.hosting.solr/solrresource.md)
- Version: `13.6.1`
- Kind: `method`

Specifies the path to the config set directory.

## Definition

```go
type SolrResource interface {
    // ... omitted for brevity
    WithConfigset(
        configSetName string,
        configSetPath string,
    ) SolrResource
}
```

## Signature

```go
WithConfigset(
    configSetName string,
    configSetPath string,
) SolrResource
```

## Parameters

- `configSetName` (`string`) -- The name of the config set.
- `configSetPath` (`string`) -- Path to the config set directory.

## Returns

[`SolrResource`](/reference/api/go/communitytoolkit.aspire.hosting.solr/solrresource.md) -- An `IResourceBuilder` that can be used to further customize the resource.

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

## Defined on

- [SolrResource](/reference/api/go/communitytoolkit.aspire.hosting.solr/solrresource.md) -- `handle`
