3

Is it possible to get the highlight field from a SOSL search within apex?

For example:

List<List<Contact>> results = [
  FIND {text} IN ALL FIELDS RETURNING Contact(Id, Name) WITH HIGHLIGHT
];

Is there a way to get the highlight field containing the <mark>text</mark> tags? For example:

contact.get('highlight.Name');

Or is this only available when executing SOSL using the API?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.