mattermost
mattermost copied to clipboard
Mattermost search doesn't work with text attachments
Summary
Search engine doesn't work with text in message attachments text and text fields.
Steps to reproduce
Mattermost Enterprise Edition Mattermost Version: 6.7.0 Search some text from a message text attachment.
Expected behavior
I can find messages by the text from message text attachments and text fields. Now it works only with message text.
Observed behavior (that appears unintentional)

It works when message text and attachment fields both have the same word to search like that
Opened: https://mattermost.atlassian.net/browse/MM-45293.
I see that attachments are being stored in a separate props
field in the database as a JSON string, and that field is not being included in the search (with DB search engine at least).
How could you enable search of attachment text but only the rendered text, and not other props, JSON keys, markdown, etc? Index the rendered attachment text separately? Or attempt to parse it in the search function? But it would need to work in ElasticSearch and Bleve too...
same issues please fix :(,is good to see it can be search with text attachment 😄
@amyblais Same bug with my Maltermost Server. Hope Maltermost Team can fix it soon. Many thanks to team if it can be fix 👯
@amyblais We have the same problem, please fix it soon :<
Got the same problem on my server :/, plz fix it T.T
The mattermost plugin for (Prometheus) Albertmanager notifications uses text attachments to display alerts. It would be very useful to be able to search through them.
Still present in 7.10 :crossed_fingers:
We also use attachments to send alerts from monitoring system, that's help us to see well formatted information about alerts. Sometimes we need to go through history to mind what's happened there, but this bug ruin everything :(
This is also present in 8.0.0 - what is the status of this bug? Is it even being worked on?
I'm also wondering if this will be fixed soon?
Have the same issue while integrating mattermost with zabbix
Same for ArgoCD notifications, which use MM attachments for formatting