Prevent hidden content macro displaying in search

Hi,

I’ve set up a hidden contents macro for my confluence instance. This is so I can put synonyms and keywords into the page without the user seeing it.

It works fine and lets the user search on common mis-spellings, however I have noticed that when you search on the keywords or synonyms it shows all the data you might have put into the macro within the search result.

searchCaputre

Can anyone think of a way to prevent that?

Or is there a way to change the way the search displays so that it displays only the first two sentences or a summary regardless of what is searched?

Thanks,
Hollie

Hi @h.l.hanna,
I would start digging into this topic by examining Extractor Modules. You could define your own extractor and store the keywords in another form (like content properties), which is not extracted by the default extractor(s).

Best regards
Alex