Khoros Atlas Logo

Highlighted
Advisor
Advisor

Search keywords within Attachment?

Jump to solution

Hello,

 

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

 

Thanks!

0 Kudos
7 Replies 7
Honored Contributor
Honored Contributor

Re: Search keywords within Attachment?

Jump to solution

@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
Tags (1)
Reply
Loading...
Advisor
Advisor

Re: Search keywords within Attachment?

Jump to solution

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

Reply
Loading...
Honored Contributor
Honored Contributor

Re: Search keywords within Attachment?

Jump to solution

@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
0 Kudos
Reply
Loading...
Lithium Alumni (Retired) Lithium Alumni (Retired)
Lithium Alumni (Retired)

Re: Search keywords within Attachment?

Jump to solution

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



Reply
Loading...
Lithium Alumni (Retired) Lithium Alumni (Retired)
Lithium Alumni (Retired)

Re: Search keywords within Attachment?

Jump to solution

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."
Reply
Loading...
Advisor
Advisor

Re: Search keywords within Attachment?

Jump to 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!

Reply
Loading...
Lithium Alumni (Retired) Lithium Alumni (Retired)
Lithium Alumni (Retired)

Re: Search keywords within Attachment?

Jump to solution
Correct - PDF is included as well.


0 Kudos
Reply
Loading...