commit: 5b1feb7c720a04b5409a2da76fb6b95b6ee83955 Author: Alex Legler <alex <AT> a3li <DOT> li> AuthorDate: Sun Feb 22 23:01:10 2015 +0000 Commit: Alex Legler <a3li <AT> gentoo <DOT> org> CommitDate: Sun Feb 22 23:01:10 2015 +0000 URL: http://sources.gentoo.org/gitweb/?p=proj/ag.git;a=commit;h=5b1feb7c
Save message filename in the index --- lib/storage.rb | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/storage.rb b/lib/storage.rb index fdf70b6..f4e55b6 100644 --- a/lib/storage.rb +++ b/lib/storage.rb @@ -55,6 +55,10 @@ module Ag::Storage type: 'string', index: 'not_analyzed' }, + raw_filename: { + type: 'string', + index: 'not_analyzed' + }, raw_parent: { type: 'string' }, @@ -157,7 +161,8 @@ module Ag::Storage month: ("%i%02i" % [message.date.year, message.date.month]).to_i, # this is a sortable number! content: content, attachments: attachments, - raw_parent: raw_parent + raw_parent: raw_parent, + raw_filename: filename } ) end