summaryrefslogtreecommitdiff
path: root/strus/document.ana
blob: 4a5fa167fc852946e06336d4076b4b2dffd07ebf (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
[Document]
	post = /posts/post;

[Content]
	"encoding=UTF-8; content=JSON;" /posts/post/meta();

[Attribute]
	docid = orig content /posts/post/slug();
	filename = orig content /posts/post/filename();
	title = orig content /posts/post/meta()/title();

[SearchIndex]
	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]
	text = orig split /posts/post/body//para();
	title = 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;

[Aggregator]
	doclen = count( word );