Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author ptz0n

    (@ptz0n)

    Hi & thank’s for your post,

    The plugin uses Googles relevance sorting as default. But the CSE API acctually supports sorting by attribute.

    How would you like to enable sorting for your users/visitors? Ex. a drop-down or a different button?

    Sure I can add an attribute to the query for specifying a different sorting. Please provide any generic examples or situations where your users would like that feature.

    I have created an issue at GitHub regarding this feature request.

    Thread Starter MoDuet

    (@aaronbacon)

    That would be stellar. A simple drop down that could sort by date or relevance And appear in the search results is all we need. Here’s an example.

    https://www.cnn.com/search/?query=America&x=0&y=0&primaryType=mixed&sortBy=relevance&intl=false

    Cheers!

    Plugin Author ptz0n

    (@ptz0n)

    Sorting by attribute actually requires the implementation of PageMaps and submitting them to Google via Webmaster Tools. This adds a lot of ifs and buts, when trying to make the plugin as straightforward to use as possible.

    Only results that does have the specified attribute (ex. date) applied in the index will be presented when doing this kind of search.

    I will start off by implementing the query part of this problem into the plugin. With that available you can easily setup your content PageMaps (sitemap or inline) and a sorter dropdown in the search.php template.

    Thread Starter MoDuet

    (@aaronbacon)

    Sounds like a start. Cheers!

    Any Updates on this topic? I’d love to be able to give our readers the choice to sort the results not by relevance, but by date.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Sort by date or relevance’ is closed to new replies.