summaryrefslogtreecommitdiff
path: root/strus/README
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-03-03 19:57:20 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2017-03-03 19:57:20 +0100
commitf0dbe295d7d4f8282c2bde86bc4387b367bef589 (patch)
tree4f09c448098b57656c789d7dd358271498c34bc5 /strus/README
parent6050f5e92d0386944cddd0adc9163bfe0f88fea3 (diff)
downloadwww-andreasbaumann-cc-f0dbe295d7d4f8282c2bde86bc4387b367bef589.tar.gz
www-andreasbaumann-cc-f0dbe295d7d4f8282c2bde86bc4387b367bef589.tar.bz2
added a first strus search to the site
Diffstat (limited to 'strus/README')
-rw-r--r--strus/README23
1 files changed, 23 insertions, 0 deletions
diff --git a/strus/README b/strus/README
new file mode 100644
index 0000000..d503c0c
--- /dev/null
+++ b/strus/README
@@ -0,0 +1,23 @@
+# Search index with strus
+
+# For now create an XML from the content, later have a directory iterator
+# over 'content' and read TOML/YAML headers and markdown...
+
+# TODO: this becomes obsolete with a Hugo segmenter which undestands
+# YAML/TOML/JSON and Markdown:
+# remarshal (https://github.com/dbohdan/remarshal)
+# pandoc (http://pandoc.org/)
+
+./create_xml.sh > posts.xml
+
+xmllint -noout posts.xml
+
+# Create the strus search index:
+
+rm -rf storage
+mkdir storage
+strusCreate -s 'path=storage/wwwandreasbaumanncc; metadata=doclen UINT16, publish_date UINT16'
+
+strusAnalyze document.ana posts.xml |& less
+
+strusInsert -c 1000 -f 1 -t 1 -s "path=storage/wwwandreasbaumanncc" document.ana posts.xml