From d6d7641cb9d5bf91f534e560c32d62227999d30b Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sun, 5 Mar 2017 09:57:46 +0100 Subject: added stemming of query --- strus/document.ana | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'strus/document.ana') 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; -- cgit v1.2.3-54-g00ecf