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 ¶
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. }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.