summaryrefslogtreecommitdiff
path: root/search/elasticlunr/README
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2018-04-29 18:50:33 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2018-04-29 18:50:33 +0200
commit50a4e701cd5791b5400ca4c8b438b17baee351b0 (patch)
tree6db06916d47297c8cde3008f1fa80265066b7982 /search/elasticlunr/README
parente2bcd2fa26b04fd2ea246b1eb765b9b52e7324fa (diff)
downloadwww-andreasbaumann-cc-50a4e701cd5791b5400ca4c8b438b17baee351b0.tar.gz
www-andreasbaumann-cc-50a4e701cd5791b5400ca4c8b438b17baee351b0.tar.bz2
replace google site search with an ElasticLunr search
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