You need to sign in to do that
Don't have an account?
Kilvati
Full text search in ContentVersion (CRM Content) objects from Apex
I figured out how to create and link ContentVersion objects from Apex code. Now I want to search through the content of these objects using Apex. Is this possible at all? I can not find any thing about this. Has somebody succeeded in doing this?
You will have to use SOSL queries on this object. More info on SOSL here - http://www.salesforce.com/us/developer/docs/api/index_Left.htm#StartTopic=Content/sforce_api_calls_sosl.htm#topic-title
Thanks for the answer! I didn't know SOSL was this powerful, but now I do.
I have upload a simple document both as a contentversion and an attachment into my salesforce. But when I search using SOSL (e.g.: [FIND 'SpecialWord' IN ALL FIELDS RETURNING ContentVersion] and [FIND 'SpecialWord' IN ALL FIELDS RETURNING attachment (body)] ), I get no results. Is this not possible, or am I to impatient and does it take a long time to index?
It could take a while to index as the indexing is done asynchronously. Did you try after a while?
Were you ever able to get the FullText search on items such as PDF, Docx, etc. using SOSL. I am trying something similar but to no avail...