Skip navigation
Currently Being Moderated

How do you filter search results?

Aug 14, 2012 12:26 AM


We have a search button on our website that does a sitewide search, and I was wondering how you get about making it so that the search results display in date order (most recent items first). At the moment it seems to display things at random, with items as old as 2005 being listed first. Can anyone help please?


Many thanks,


  • Currently Being Moderated
    Aug 14, 2012 11:19 AM   in reply to TraceyB42

    Hi Tracey,


    At this stage we do not have a sort by parameter for the search module. 


    The additional parameters that are available can be found below.




    Kind regards,


    Mark as:
  • Currently Being Moderated
    Aug 14, 2012 5:29 PM   in reply to Sidney Mitchell

    Can you tell us what the default parameters are for the search? That is, what does the search engine use to decide the display order of the results page. Is it by date, weighting or number of times the query term appears on page? Our search is currently showing items from 2005 before our latest items. We would like to correct this and can manually update the weightings (a big job)  - if this will improve the order of our search results.

    Regards Sally

    Mark as:
  • Currently Being Moderated
    Aug 14, 2012 9:23 PM   in reply to TraceyB42

    I'll share my newly found work around.


    I use this.  I put a huge number in the resultsPerPage argument and then process the results with a JS sorting plugin like this:




    That plugin it particular is better than the built in functionality as it has better pagination and can sort columns if you display it in a table.


    I have to warn you, this is not something someone can do with out good working knowledge of HTML & JS/Jquery.

    Mark as:
  • Currently Being Moderated
    Aug 14, 2012 11:31 PM   in reply to salb44

    I would also like to know the process behind ordering the search results as asked in comment #3.


    Also, how it searches for search terms in text... say I search on "Pumpkin", will it also return results for "Pumpkins" seeing as it contains the initial query?

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points