algolia-indexer

command module
v0.0.0-...-b8179b1 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2021 License: MIT Imports: 3 Imported by: 0

README

Algolia-Indexer GoDoc Go Report Card

A tool to power your static site's search with Algolia. Build a JSON site index and send it to Algolia with this script. To work, the Algolia script API key must have permission to create/drop an index because it creates a temporary table, sends all the data to the temporary table, then swaps it in.

Installation

First install Go.

If you just want to install the binary to your current directory and don't care about the source code, run

GOBIN=$(pwd) go install github.com/spotlightpa/algolia-indexer@latest

Usage

$ algolia-indexer -h
indexer - sends JSON object array to Algolia

Options may also be set as environment variables prefixed with INDEXER_.

Options:
  -algolia-api-key key
        key for Algolia API
  -algolia-app-id ID
        ID for Algolia app
  -algolia-index-name name
        name for Algolia index
  -src value
        source file or URL (default stdin)
  -verbose
        log debug output (default silent)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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