wp-search-index
Module for indexing wp sites for our search service
Config
Setup your environment in an .env file
API_URL=http://localhost/wp-json/wp/v2/postsSEARCH_SERVICE=http://localhost:3000SEARCH_INDEX=wwwSEARCH_INDEX_TYPE=articleJWT_SECRET=Louie Louie, oh no, I got to go Louie Louie, oh no, I got to goPAPERTRAIL_HOSTNAME=wp-search-indexPAPERTRAIL_HOST=logs.papertrailapp.comPAPERTRAIL_PORT=12345
Usage
$ npx wp-search-index .env
This will start the indexing with the enironmental variables from .env
Related
- search-service Search service with ElasticSearch