Trying to add a fieldtype (in this case, "artist") to search.
I can add the column in the admin like so:
columns:
- title
- artist.title
but doing the same in site/settings/search.yaml
ie:
searchable:
- title
- artist.title
still does not open this up to search...
So I went down the rabbit hole, trying to get at it within the search results somehow underneath the artist... ie:
searchable:
- title
- artist
This at least adds the id to the search.yaml index, however:
{{ search:results }}
{{ collection:artworks scope="artwork" }}
{{ if artist === artwork:artist }}
<br>{{ title }} (this should be an artwork with the same artist found in the search
{{ /if }}
{{ /collection:artworks }}
{{ /search:results }}
this simply does not work.
Any help here would be greatly appreciated!