Support Forum

Searching for Attachments

MR Michael Rosenberg
Michael Rosenberg
Member

This is an ongoing discussion I’ve been having with Simple:Press support but was advised to move it to the forums for further input from the rest of the team.

Basically what we are trying to do is to have a way for relevant posts with the correlating attachments to show up in the search results even if the poster fails to add the specific name of the attachment somewhere in the post title, description, or body. 

Ideally, we would be able to go to the forum and click on the search box as you would normally. If I typed in the name of an attachment I know is somewhere in the forum, the related post (in which this attachment appears) would appear in the search results. 

I was told that the only thing Simple:Press keeps track of is the name of the attachment via the URL path, so would it be possible for the name to be accessible via search?

So for example, if I was searching for an article called “10 Hottest IT Trends in Business” or something similar, the post with that attachment would show up even if the string “10 Hottest IT Trends in Business” is not included in the post title, description, or body content. 

Thanks in advance!

Michael

4 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

According to my tests using the attachment name in s search will find the topic that attachment was used in… Is that what you mean?

MR Michael Rosenberg
Michael Rosenberg
Member

Yes that is exactly what I mean, but when I do that search it finds no results.

 

Are you using the exact file name (i.e. “Creating-A-Strategic-IT-Architecture-Competency.pdf“) or an approximation (i.e. Creating a Strategic IT architecture competency)? 

Neither of these strings return the associated post.

 

Thank you!

YS Yellow Swordfish
Yellow Swordfish
Member

ah yes – of course – a file, like a PDF. has no presence in the post (unlike an image or video) unless it is used in an actual link (to enable download for example) so it’s actual name will never become a part of the post text.

MP Mr Papa
Mr Papa
Member

correct. the only option here would be to explicitly force the searching to look at the attachment column in the sfposts table.  not a simplistic change but possible. And the searched name would need to be a match for the title of the file (ie including dashes, etc)…