- Home
- Technical Library
- Boards
- Cookbook
- Code Share
- Blogs
- Partners
-
More
-
Services
- Training & Certification
- Support
-
Galleries
- Force.com Sites Gallery
- Chatter Challenge Entries
-
Other Web Sites
- Salesforce.com
- Database.com
- AppExchange
- CRM Community
-
Discussions
- Announcements
- General Development
- Schema Development
- New to Cloud Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules Discussion
- Security
- Mobile
- Force.com Sites
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby Development
- Adobe Flash Builder for Force.com
- Desktop Integration
- REST API Integration
- Streaming API
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- Excel Connector
- AJAX Toolkit & S-controls
- Force.com Builder & Native Apps
- AppExchange Directory & Packaging
- Force.com Labs Projects
- Open Source
- Site.com
- Jobs Board - Administrators
- Jobs Board - Developers
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- Apex Code Development
- :
- SOSL in documents
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
SOSL in documents
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-15-2010 04:37 AM - last edited on 06-15-2010 04:37 AM
Hi,
I read some where that SOSL will allow you to search on documents and to use a * and ? for search terms. What I am not sure is what type of documents are supported and how does it works on a combination of * and ?. Example, the following query:
for(Document doc:(List<Document>)[FIND '*dfgdfg*' IN ALL FIELDS RETURNING Document(id)][0]){
}will return all the documents on my org (including PDF, word, txt), which BTW does not contain a string 'dfgdfg' or any other string that contains 'dfgdfg'.
In the other hand, if I remove the * (wild card) symbol it returns nothing, which is what I expected. Also I get a correct answer if I search any term without the * (wild card) symbol.
Is this a bug or just should not be used in this way?
Re: SOSL in documents
[ Edited ]- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
06-16-2010 07:38 AM - last edited on 06-16-2010 07:39 AM
Here are some documents that may help you
http://www.salesforce.com/us/developer/docs/api/Co
http://www.salesforce.com/us/developer/docs/apexco
Ignacio.

