Can I combine two SearchGroup in one SOSL query? I want to search both in Name Fields and in Phone fields. Something like

FIND {78*} IN (NAME , PHONE) FIELDS RETURNING Contact(id,name,phone)

1 Answer 1


You can try like this:

RETURNING Contact(id,name,phone 

Refer WHERE condition

Updated based on comments

  • I have custom objects and I don't know the names of the fields. That's why I want to refer to the fields as group
    – Polina F.
    Dec 22, 2016 at 14:05
  • In this case, just remove WHERE condition and search All fields Dec 22, 2016 at 14:09
  • 1
    @SantanuBoral your answer and comment has nothing to do with the question.
    – Andy Ray
    Apr 25, 2019 at 17:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .