mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-02-18 15:13:32 -05:00
14 lines
687 B
Go
14 lines
687 B
Go
package config
|
|
|
|
// Extractor defines which extractor to use
|
|
type Extractor struct {
|
|
Type string `yaml:"type" env:"SEARCH_EXTRACTOR_TYPE" desc:"Defines the content extraction engine. Defaults to 'basic'. Supported values are: 'basic' and 'tika'."`
|
|
CS3AllowInsecure bool `yaml:"cs3_allow_insecure" env:"OCIS_INSECURE;SEARCH_EXTRACTOR_CS3SOURCE_INSECURE" desc:"Ignore untrusted SSL certificates when connecting to the CS3 source."`
|
|
Tika ExtractorTika `yaml:"tika"`
|
|
}
|
|
|
|
// ExtractorTika configures the Tika extractor
|
|
type ExtractorTika struct {
|
|
TikaURL string `yaml:"tika_url" env:"SEARCH_EXTRACTOR_TIKA_TIKA_URL" desc:"URL of the tika server."`
|
|
}
|