+ Start a Discussion
Krishna KatveKrishna Katve 

What all types of field are searchable using SOSL? What all types of field sosl searches if we mention ALL FIELDS in SOSL?

Please Advise.
Jigar.LakhaniJigar.Lakhani
Hello,

ALL FIELDS in SOSL means it is able to search in all fields of object. For more information please refer below link.
https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_sosl_in.htm

Thanks & Cheers,
Jigar(pateljb90@gmail.com)
Krishna KatveKrishna Katve
Hi Jigar,

It says all searchable fields. Can formula fields are included in searchable fields?

ALL FIELDS : Search all searchable fields. If the IN clause is unspecified, then this is the default setting.

Thanks
krishna

 
Jigar.LakhaniJigar.Lakhani
Hello Krishna,

Formual fields are not included in searchable fields.

Thanks & Cheers,
Jigar(pateljb90@gmail.com)
Gug ChilGug Chil
ALL FIELDS
NAME FIELDS
EMAIL FIELDS
PHONE FIELDS
SIDEBAR FIELDS

https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_sosl_in.htm
Ken Koellner 7Ken Koellner 7
I think Krishna's quetions is reasonable and still not completely answers.  The "ALL FIELDS" option clearly doesn't literally mean all fields.  Formula fields, long text fields, and some other types are not searchable.  I think perhaps read wording the question to "How can a tell what fields in an object are searchable with SOSL?" helps.