Public
Advisor

Search keywords within Attachment?

Hello,

 

Does anyone know if Lithium search goes through attachments of posts to match keywords for search results?

 

Thanks!

7 Replies 7
Honored Contributor

@yyun - Yes, lithium does match the attachment name while searching for messages in the community. Also, there is an API V2 available for that. 

 

SELECT id FROM messages WHERE attachments.filename MATCHES 'IMG_2949.JPG'

https://community.lithium.com/t5/Developer-Documentation/bd-p/dev-doc-portal?section=commv2&collecti...

Give kudos if you find my posts helpful or mark solution if it answers your query.
Tariq

@TariqGrazitti, Thanks!  Does it also go through the content of the attachment to see if keywords exist within the document itself? or just the name of document?

 

I'm trying to determine whether it is beneficial for me to attach the document within the post - because it helps with keyword search - boosting search results with relevant content? or just noting a URL where the document can be sitting on third party site - if there is no benefit of having the content attached to the post itself.

Honored Contributor

@yyun - It wouldn't search what inside the attachment content.  It will only match the attachment filename (document name). 

Regarding the content, it only can match the content of body not inside what attachment has. 

 

Even through customization you only can get messages with filename as shown here https://community.lithium.com/t5/Developer-Documentation/bd-p/dev-doc-portal?section=commv2&collecti...

Give kudos if you find my posts helpful or mark solution if it answers your query.
Tariq
Lithium Alumni (Retired)

Actually, search DOES include contents in attachments - it will search the entire document.



Lithium Alumni (Retired)

Best to check that this is still true, but my memory is that we search attached docs created by Microsoft applications such as Word.



If my post answers your question, please mark it as an "Accepted Solution."

@RobbL - just did a spot check on our site for a keyword I found - that's not too common - on a PDF and the post was part of my search results.  PDF seems to be reviewed as well.  Thank you all!

Lithium Alumni (Retired)

Correct - PDF is included as well.


Welcome to the Technology board!

Curious about our platform? Looking to connect on social technology? You've come to the right place!

Are you a Lithium customer? For direct assistance from our Support team, please visit the Support Forum.