You are viewing limited content. For full access, please sign in.

Question

Question

Quick Search Sorting by Relevance Instead of Hits

asked on June 13, 2014

We have a requirement to default sort the results from the Quick Search portion of WebLink 8.2.2 by Relevance instead of Hits.  I understand how to do this if the default sort needs to be a column or field but haven't been able to find anything on changing it for items that do not fall into either of those categories.  Anyone know how to set the default search results sorting for the Quick Search (not custom searches) in WebLink 8.2?

0 0

Answers

APPROVED ANSWER
replied on March 17, 2015

This feature is available in WebLink 9 which was just released.

0 0
SELECTED ANSWER
replied on June 18, 2014

This is the correct approach, but due to a bug in WebLink it won't work. There isn't a workaround as far as I know, but we've filed a couple of bug reports, so it should be ironed out at some point. What's the requirement? Maybe there's another way we can approach it.

0 0

Replies

replied on June 18, 2014

I know that the "<weblink:SearchResultsBrowser8>" uses the attribute DefaultSortField attribute which you can set to either "Relevance" or "Hits" or a fieldname. This control is used on Search.aspx and Welcome.aspx page. When you perform a search on Browse.aspx it sends the request to Search.aspx.

 

An example to default sort by Relevance

<weblink:searchresultsbrowser8 SortableColumns="COLUMN_TYPE_NAME,COLUMN_TYPE_LASTDATE, COLUMN_TYPE_CREATEDATE" DefaultSortField="Relevance" AdditionalProperties="COLUMN_TYPE_CREATEDATE, COLUMN_TYPE_LASTDATE, COLUMN_TYPE_NUMPAGES, COLUMN_TYPE_TAGS" ThumbnailCount="5" id="TheSearchResultsBrowser" runat="server" width="100%" MaxLength="20" AllowImageEnable="false" />

 

0 0
SELECTED ANSWER
replied on June 18, 2014

This is the correct approach, but due to a bug in WebLink it won't work. There isn't a workaround as far as I know, but we've filed a couple of bug reports, so it should be ironed out at some point. What's the requirement? Maybe there's another way we can approach it.

0 0
replied on June 18, 2014

It is a pretty basic request.  The user wants the results from their Quick Search that is on the Welcome Page to display by "Relevance" first as they feel that is more accurate than "Hits".  I knew I could set the default to a field or a column but had yet to see where I could do it by relevance.  If this is a known bug then I can advise them of that and it shouldn't be a problem.  Thanks for the heads up.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.