I have a search page. I can search either categories or entries using
{% set entries = craft.entries.search(query).order('score') %}
{% set categories = craft.categories.search(query).order('score') %}
I have added quite a bit of content in each category i.e. what it's all about etc. and I would like this content returned like a standard search result going to the category URL (it works when I search categories only)
I've tried to merge the above two arrays
{% set results = categories | merge (entries) %}
But that's obviously not how you do it because it throws a craft error.
Now, I guess I could return the results of one, and then the other, but I was hoping to have the score create a more sensible order of relevant results.