aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Legler <alex@a3li.li>2015-02-23 00:01:10 +0100
committerAlex Legler <alex@a3li.li>2015-02-23 00:01:10 +0100
commit5b1feb7c720a04b5409a2da76fb6b95b6ee83955 (patch)
tree776050319579ee8ac0a340ab26c2e1692bb82f9a
parentShow more filenames when rendering fails (diff)
downloadbackend-5b1feb7c720a04b5409a2da76fb6b95b6ee83955.tar.gz
backend-5b1feb7c720a04b5409a2da76fb6b95b6ee83955.tar.bz2
backend-5b1feb7c720a04b5409a2da76fb6b95b6ee83955.zip
Save message filename in the index
-rw-r--r--lib/storage.rb7
1 files changed, 6 insertions, 1 deletions
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