I have this widget on our search page:
<widget type="pages">
<arg id="header">Pages</arg>
<arg id="max">30</arg>
<arg id="paginate">5</arg>
<arg id="search"><xphp var="q" type="get"/></arg>
<arg id="format">
<span class="search-item-title"><strong>{title}</strong></span><br />
<span class="search-item-group">{group_title}{!group_title:"Beloit College"}</span>
</arg>
</widget>
The default sort appears to take the search relevancy into account.
I have a request to incorporate certain blurb types (resources, policies, etc) into this search. So, I tried making a similar widget for the blurbs, then a stream widget to merge them.
My issue is that the stream widget’s default behavior doesn’t appear to consider search relevancy. The original widgets determine which results are relevant (assuming the search is passed along to the source widgets), then the stream widget sorts them into newest/last-modified order. Thus, the obvious result (“biology” to Biology department, for example) is in the list, but rarely first.
I did some troubleshooting on terms like “geology” and “environmental” by defining keywords in page meta. However, I noticed that whichever I edit last is the first result every time (assuming the page is relevant).
Thus, how might I achieve the following?
- Have a stream widget drawing on pages and certain blurb types.
- Limited to relevant matches of a given search term.
- With results sorted by their relevancy?
Or will I have to add another section or two to the search page for “Resources”?
Thanks,
Nick