Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearIndex ¶
func ClearIndex(index algoliasearch.Index) error
ClearIndex will clear the search index
func LoadObjectFile ¶
func LoadObjectFile(file string) ([]algoliasearch.Object, error)
LoadObjectFile loads a JSON file of search terms and returns a slice of algoliasearch.Objects
Types ¶
type Config ¶
type Config struct { AlgoliaAPIKey string `mapstructure:"algolia_api_key"` AlgoliaAppID string `mapstructure:"algolia_app_id"` AlgoliaIndexName string `mapstructure:"algolia_index_name"` UploadFile string `mapstructure:"upload_file"` Verbose bool }
func (*Config) ClearIndex ¶ added in v0.0.3
ClearIndex will clear the search index
func (*Config) GetIndex ¶
func (c *Config) GetIndex() algoliasearch.Index
func (*Config) LoadUploadFile ¶ added in v0.0.3
func (c *Config) LoadUploadFile() ([]algoliasearch.Object, error)
LoadUploadFile loads the configured JSON file of search terms and returns a slice of algoliasearch.Objects
func (*Config) UploadIndex ¶ added in v0.0.3
Click to show internal directories.
Click to hide internal directories.