diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2018-04-27 20:45:12 +0200 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2018-04-27 20:45:12 +0200 |
commit | 74087a15b63dbc062e1c8a785917f44cda5f14c7 (patch) | |
tree | bd20677420b33aae27bb3ba6065c1757880caecf /search/strus/document.ana | |
parent | e372ee22511a0e084b7957316909705bf9628d01 (diff) | |
download | www-andreasbaumann-cc-74087a15b63dbc062e1c8a785917f44cda5f14c7.tar.gz www-andreasbaumann-cc-74087a15b63dbc062e1c8a785917f44cda5f14c7.tar.bz2 |
better GDPR page
Diffstat (limited to 'search/strus/document.ana')
-rw-r--r-- | search/strus/document.ana | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/search/strus/document.ana b/search/strus/document.ana new file mode 100644 index 0000000..8fbcf3e --- /dev/null +++ b/search/strus/document.ana @@ -0,0 +1,27 @@ +[Document] + post = /posts/post; + +[Content] + "encoding=UTF-8; content=JSON;" /posts/post/meta(); + +[Attribute] + docid = orig content /posts/post/slug(); + title = orig content /posts/post/meta()/title(); + categories = orig content /posts/post/meta()/categories(); + thumbnail = orig content /posts/post/meta()/thumbnail(); + +[SearchIndex] + word = lc:convdia(en):stem(en):lc regex("([A-Za-z']+)") /posts/post/meta()/title(); + word = lc:convdia(en):stem(en):lc regex("([A-Za-z']+)") /posts/post/body//para(); + sentence = empty punctuation("en") /posts/post/body//para(); + +[ForwardIndex] + title = orig split /posts/post/meta()/title(); + text = orig split /posts/post/body//para(); + +#[MetaData] +# release_date = date2int("d 1877-01-01", "%Y-%m-%d %H:%M:%s *") content /posts/post/meta()/date; + +[Aggregator] + doclen = count( word ); + |