Out of the box SXA
Search Results component shows only page
How can I customize that component to show page
Sitecore Stack Exchange is a question and answer site for developers and end users of the Sitecore CMS and multichannel marketing software. It only takes a minute to sign up.Sign up to join this community
You should use Rendering variants for this.
When you edit the search results rendering properties, there is a field which allows you to select rendering variant. You can choose from the couple of default ones but you can define your own.
In order to define a variant you have to:
Variant definitionin the
Presentation\Rendering Variants\Search results
Fieldand name them
Description(actually you can name them whatever you want but the name is propagated to Field field which is used to identify which field should be used to get the data from)
You can read more in the documentation
Here is the list of SXA renderings with information which of them supports component variants