Skip to content

Latest commit

 

History

History
42 lines (28 loc) · 1.12 KB

File metadata and controls

42 lines (28 loc) · 1.12 KB

Schema + Algolia

Easiest way to import and index Schema products and content into Algolia.

Getting Started

  • Clone this repository
  • Create .env file and set your Schema Client ID and Key
SCHEMA_CLIENT_ID=my-client-id
SCHEMA_CLIENT_KEY=my-client-key
ALGOLIA_APP_ID=my-app-id
ALGOLIA_API_KEY=my-api-key
ALGOLIA_PREFIX=schema_ // will result in indexes like `schema_products`
ALGOLIA_INDEXES=products,pages,blogs // comma separated list of models to index
  • Run nvm install (make sure you have nvm installed)
  • Run npm install

Sync with Algolia

Import new and update existing search indexes according to the environment configuration described above.

npm run sync

Refine Search Attributes

Login to the Algolia dashboard to customize your search attributes and preferences on a per index basis. See the Algolia Docs for more information.

Support

Need help with this package? Visit us in Slack at https://slack.schema.io

Contributing

Pull requests are welcome.

License

MIT