mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-21 12:28:33 -05:00
13 lines
612 B
Go
13 lines
612 B
Go
package config
|
|
|
|
// Engine defines which search engine to use
|
|
type Engine struct {
|
|
Type string `yaml:"type" env:"SEARCH_ENGINE_TYPE" desc:"Defines which search engine to use. Defaults to 'bleve'. Supported values are: 'bleve'." introductionVersion:"1.0.0"`
|
|
Bleve EngineBleve `yaml:"bleve"`
|
|
}
|
|
|
|
// EngineBleve configures the bleve engine
|
|
type EngineBleve struct {
|
|
Datapath string `yaml:"data_path" env:"SEARCH_ENGINE_BLEVE_DATA_PATH" desc:"The directory where the filesystem will store search data. If not defined, the root directory derives from $OC_BASE_DATA_PATH/search." introductionVersion:"1.0.0"`
|
|
}
|