From 9bb70e2675a258f33f32d5fa27481d15314a5f44 Mon Sep 17 00:00:00 2001 From: Andreas Baumann Date: Sat, 4 Mar 2017 20:16:18 +0100 Subject: added title instead of filename to ranklist --- strus/document.ana | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'strus/document.ana') diff --git a/strus/document.ana b/strus/document.ana index a296775..3ffefa8 100644 --- a/strus/document.ana +++ b/strus/document.ana @@ -1,11 +1,14 @@ -[Attribute] - docid = orig content /posts/post/slug(); - filename = orig content /posts/post/filename(); -# title = orig content /posts/post/meta()/title(); +[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 word /posts/post/body/para(); # word = orig split /posts/post/body/para(); @@ -13,9 +16,6 @@ [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; -- cgit v1.2.3-54-g00ecf