diff options
Diffstat (limited to 'content/blog/web-search-homepage.md')
-rw-r--r-- | content/blog/web-search-homepage.md | 27 |
1 files changed, 23 insertions, 4 deletions
diff --git a/content/blog/web-search-homepage.md b/content/blog/web-search-homepage.md index d060a0a..98b81c7 100644 --- a/content/blog/web-search-homepage.md +++ b/content/blog/web-search-homepage.md @@ -121,7 +121,7 @@ how Strus should analyze and index the documents: post = /posts/post; ``` -which means split on the XPath expession `/posts/post`. +which means split on the XPath expression `/posts/post`. ``` [Content] @@ -173,7 +173,7 @@ we can present a selection of them (usually a sentence containing the matches) in the rank list. Finally, we need to count the number of words per document, -this is needed or the retrieval function: +this is needed for the retrieval function: ``` [Aggregator] @@ -218,12 +218,13 @@ strusWebService (with JSON on HTTP). This leads to the problem of CORS (Cross-Origin-Requests) which have to be configured in the strusWebService (which must allow requests originating from the server which -delivered the static HTML page generated with Hugo. +delivered the static HTML page generated with Hugo). Also I had to stem and lowercase the query terms with a [Snowball Javascript library](https://github.com/fortnightlabs/snowball-js) as the strusWebService doens't support query analysis right now. + ## Workflow So, when I change or add a page in to my website I have to run: @@ -257,6 +258,24 @@ The upload to the remote webserver can be done more elegantly. One idea is to use the backup/replication API of strus for this: build an index locally and sync it to the strusWebService. +### Update 8.3.2018 + +Currently the ARM version of strus is completely broken +and the strusWebService is being rewritten. So there will be an updated +blog entry when those things are fixed. + +### Update 29.4.2018 + +Replaced the web page search with an [Elasticlunr](http://elasticlunr.com/) +Javascript search, running 100% on the client for added security and load +distribution benefits. + +### Update 17.12.2023 + +Replaced the Elasticlunr search with a webassembly version of +[Sqlite Free Text Search 5](https://www.sqlite.org/fts5.html). +Also runs completely on the clients browser. + # Sources As always you can find the sources of the project on my github (also hosted @@ -266,5 +285,5 @@ http://git.andreasbaumann.cc/cgit/www-andreasbaumann-cc/ The strus specific scripts and configuration are in: -http://git.andreasbaumann.cc/cgit/www-andreasbaumann-cc/tree/strus +http://git.andreasbaumann.cc/cgit/www-andreasbaumann-cc/tree/search/strus |