mattermost icon indicating copy to clipboard operation
mattermost copied to clipboard

Mattermost search doesn't work with text attachments

Open juliavav opened this issue 2 years ago • 6 comments

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)

image

It works when message text and attachment fields both have the same word to search like that image

juliavav avatar Jun 23 '22 10:06 juliavav

Opened: https://mattermost.atlassian.net/browse/MM-45293.

amyblais avatar Jun 23 '22 10:06 amyblais

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...

MatthewDorner avatar Jun 29 '22 17:06 MatthewDorner

same issues please fix :(,is good to see it can be search with text attachment 😄

cobengualon avatar Sep 18 '22 16:09 cobengualon

@amyblais Same bug with my Maltermost Server. Hope Maltermost Team can fix it soon. Many thanks to team if it can be fix 👯

territestgogo avatar Sep 18 '22 17:09 territestgogo

@amyblais We have the same problem, please fix it soon :<

ErikHorus1249 avatar Sep 18 '22 17:09 ErikHorus1249

Got the same problem on my server :/, plz fix it T.T

manhdinh798 avatar Sep 18 '22 17:09 manhdinh798

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.

fschlich avatar Jan 21 '23 23:01 fschlich

Still present in 7.10 :crossed_fingers:

akuzia avatar Apr 21 '23 08:04 akuzia

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 :(

vetash avatar Jul 05 '23 09:07 vetash

This is also present in 8.0.0 - what is the status of this bug? Is it even being worked on?

itsmichaelk avatar Oct 02 '23 05:10 itsmichaelk

I'm also wondering if this will be fixed soon?

kryptonit1 avatar Jan 22 '24 11:01 kryptonit1

Have the same issue while integrating mattermost with zabbix

mykolq avatar May 13 '24 17:05 mykolq

Same for ArgoCD notifications, which use MM attachments for formatting

ansromanov avatar Jul 02 '24 11:07 ansromanov