0

Problem

I have some Display Suite token fields, and I want to include these and other entity fields in the Search API search results.

I also want to include the Search API Excerpt field in the results.

What's the easiest way to get these DS fields into the search results along with other entity fields?

What I've tried

I have tried using Fields for the view's Format > Show setting, but the DS fields don't appear as field options.

I have tried using Rendered entity for the view's Format > Show setting, but the Excerpt field doesn't appear as a field option in any of the display configurations.

I have tried adding custom theme templates to override the display, and I get a fatal error. I haven't resolved this error after a bit of searching, so theme overrides doesn't look like the easiest route.

When a #lazy_builder callback is specified, no properties can exist; all properties must be generated by the #lazy_builder callback. You specified the following properties: #attributes.

1 Answer 1

0

I missed it earlier, but it turns out that Search API just exposed the Excerpt field to view modes.

Updating Search API to 8.x-1.x-dev and a cache rebuild gave me the functionality I need.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.