# WithConfigset

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

Specifies the path to the config set directory.

## Definition

```go
func (SolrResource) 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()`.

## Applies to

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