Initial commit: Open sourcing all of the Maple Open Technologies code.
This commit is contained in:
commit
755d54a99d
2010 changed files with 448675 additions and 0 deletions
18
cloud/maplepress-backend/pkg/search/config.go
Normal file
18
cloud/maplepress-backend/pkg/search/config.go
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
// File Path: monorepo/cloud/maplepress-backend/pkg/search/config.go
|
||||
package search
|
||||
|
||||
// Config holds Meilisearch configuration
|
||||
type Config struct {
|
||||
Host string
|
||||
APIKey string
|
||||
IndexPrefix string // e.g., "maplepress_" or "site_"
|
||||
}
|
||||
|
||||
// NewConfig creates a new Meilisearch configuration
|
||||
func NewConfig(host, apiKey, indexPrefix string) *Config {
|
||||
return &Config{
|
||||
Host: host,
|
||||
APIKey: apiKey,
|
||||
IndexPrefix: indexPrefix,
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue