Easiest way to import and index Schema products and content into Algolia.
- 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
Import new and update existing search indexes according to the environment configuration described above.
npm run sync
Login to the Algolia dashboard to customize your search attributes and preferences on a per index basis. See the Algolia Docs for more information.
Need help with this package? Visit us in Slack at https://slack.schema.io
Pull requests are welcome.
MIT