diff options
author | Andreas Baumann <mail@andreasbaumann.cc> | 2017-03-03 19:57:20 +0100 |
---|---|---|
committer | Andreas Baumann <mail@andreasbaumann.cc> | 2017-03-03 19:57:20 +0100 |
commit | f0dbe295d7d4f8282c2bde86bc4387b367bef589 (patch) | |
tree | 4f09c448098b57656c789d7dd358271498c34bc5 /strus/document.ana | |
parent | 6050f5e92d0386944cddd0adc9163bfe0f88fea3 (diff) | |
download | www-andreasbaumann-cc-f0dbe295d7d4f8282c2bde86bc4387b367bef589.tar.gz www-andreasbaumann-cc-f0dbe295d7d4f8282c2bde86bc4387b367bef589.tar.bz2 |
added a first strus search to the site
Diffstat (limited to 'strus/document.ana')
-rw-r--r-- | strus/document.ana | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/strus/document.ana b/strus/document.ana new file mode 100644 index 0000000..a296775 --- /dev/null +++ b/strus/document.ana @@ -0,0 +1,25 @@ +[Attribute] + docid = orig content /posts/post/slug(); + filename = orig content /posts/post/filename(); +# title = orig content /posts/post/meta()/title(); + +[Content] + "encoding=UTF-8; content=JSON;" /posts/post/meta(); + +[SearchIndex] +# word = lc:convdia(en):stem(en):lc word /posts/post/body/para(); +# word = orig split /posts/post/body/para(); + word = lc regex("([A-Za-z']+)") /posts/post/body/para(); + +[ForwardIndex] + word = orig split /posts/post/body/para(); + +[Document] + post = /posts/post; + +#[MetaData] +# release_date = date2int("d 1877-01-01", "%Y-%m-%d %H:%M:%s *") content /posts/post/meta()/date; + +[Aggregator] + doclen = count( word ); + |