Requirements:
- For generating indexes:
npm install -g kovetskiy/hugo-elasticsearch
- ElasticSearch
How does it work:
- Generates index using hugo-elasticsearch which just reads all markdown files and generates index that can be uploaded into elasticsearch
- Uploads that file and adds new alias
- Removes old aliases and old indexes
Steps 2 and 3 used just to avoid broken search engine.
Environment variables:
LISTEN
- address to listenELASTIC
- address of elasticINPUT
- path with content like that: "/srv/hugo/content/**"LANGUAGE
- yaml or tomlDELIMITER
----
for yaml or+++
for tomlINDEX
- name of index, I prefer to call it the same as website