summaryrefslogtreecommitdiff
path: root/search/elasticlunr/README
diff options
context:
space:
mode:
Diffstat (limited to 'search/elasticlunr/README')
-rw-r--r--search/elasticlunr/README9
1 files changed, 6 insertions, 3 deletions
diff --git a/search/elasticlunr/README b/search/elasticlunr/README
index 2295f36..8cbebea 100644
--- a/search/elasticlunr/README
+++ b/search/elasticlunr/README
@@ -5,13 +5,16 @@
# generate JSON dynamically with a JSON output generator,
# see https://halfelf.org/2017/hugos-making-json/
-curl http://localhost:1313/index.json > posts.json
-#curl http://www.andreasbaumann.cc/index.json > posts.json
+#curl http://localhost:1313/index.json > posts.json
+curl http://www.andreasbaumann.cc/index.json > posts.json
# we need nodejs and npm
+npm install JSONStream event-stream
+
# use posts.json in a | node create_index.js pipeline
# -> results in posts_index.json
-npm install JSONStream event-stream
+./create_index
+cp posts.index ../../static/index/.
# add as static contents to hugo site