engines

package
v0.0.0-...-d7c7285 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 5, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EngineNameBingVideos = "bing_videos"
)
View Source
const (
	EngineNameElasticSearch = "elastic_search"
)
View Source
const (
	EngineNameGoogle = "google"
)
View Source
const (
	EngineNameIMDB = "imdb"
)
View Source
const EngineNameWikipedia = "wikipedia"

Variables

This section is empty.

Functions

func GetGoogleInfo

func GetGoogleInfo(params map[string]string) map[string]interface{}

func InitConfiguration

func InitConfiguration(configuration map[string]map[string]engine.Config)

Types

type ElasticSearchConfig

type ElasticSearchConfig struct {
	Enable             bool     `mapstructure:"enable"`
	BaseUrl            string   `mapstructure:"base_url"`              // BaseUrl is elastic search access url.
	Index              string   `mapstructure:"index"`                 // Index used by search.
	QueryType          string   `mapstructure:"query_type"`            // The type of query, such as match,term, etc.
	QueryFields        []string `mapstructure:"query_fields"`          // The fields of the query, such as title, content, etc.
	MaxLengthOfContent int      `mapstructure:"max_length_of_content"` // The maximum length of the content.
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL