summaryrefslogtreecommitdiff
path: root/strus/document.ana
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-03-05 09:57:46 +0100
committerAndreas Baumann <mail@andreasbaumann.cc>2017-03-05 09:57:46 +0100
commitd6d7641cb9d5bf91f534e560c32d62227999d30b (patch)
treeb16e6b420c5a6e1ec50d82f5491b0a075010aebc /strus/document.ana
parent2bc6ab49e7950b75b232488ba2676dc8b2ced4e0 (diff)
downloadwww-andreasbaumann-cc-d6d7641cb9d5bf91f534e560c32d62227999d30b.tar.gz
www-andreasbaumann-cc-d6d7641cb9d5bf91f534e560c32d62227999d30b.tar.bz2
added stemming of query
Diffstat (limited to 'strus/document.ana')
-rw-r--r--strus/document.ana4
1 files changed, 3 insertions, 1 deletions
diff --git a/strus/document.ana b/strus/document.ana
index 3ffefa8..e4fc8db 100644
--- a/strus/document.ana
+++ b/strus/document.ana
@@ -12,10 +12,12 @@
[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();
+ word = lc:convdia(en):stem(en):lc regex("([A-Za-z']+)") /posts/post/body/para();
+ word = lc:convdia(en):stem(en):lc regex("([A-Za-z']+)") /posts/post/meta()/title();
[ForwardIndex]
word = orig split /posts/post/body/para();
+ word = orig split /posts/post/meta()/title();
#[MetaData]
# release_date = date2int("d 1877-01-01", "%Y-%m-%d %H:%M:%s *") content /posts/post/meta()/date;