PassMark Logo
Home » Forum

Way to limit number of search results returned

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • zarc
    Junior Member
    • Aug 2008
    • 8

    #1

    Way to limit number of search results returned

    Is there a way to limit the number of search results that get returned by using a particular string in the search phrase?

    Eg: &zoom_per_page=10 - return 10 results per page
    Eg: &zoom_sort=0 - sort by relevance
    etc.

    Thanks
  • David
    Administrator
    • Dec 2004
    • 4714

    #2
    You can specify this via the URL (as you already pointed out) zoom_per_page=XX. This URL parameter is set via the "Results per page" drop down form element. You can't specify something in the search string itself, you need to use the "Results per page" field.

    Comment

    • Nyctalinth
      Junior Member
      • Aug 2008
      • 2

      #3
      I have a related question and didn't want to start a new thread for this - We also want to limit the number of search results displayed, but in a manner that is unrelated to the results per page. We may have 60 or more pages that contain a phrase, but if it is not in the top 20, it is likely not relevant to the search. We want to eliminate the clutter to make navigating through the results less intimidating by limiting the total number of results to a fixed value (ie: 25, perhaps displayed 10 per page). Is there a way to do this kind of limit?

      Comment

      • David
        Administrator
        • Dec 2004
        • 4714

        #4
        Nyctalinth, I don't think many users will find the Next and Previous buttons intimidating.

        You could hide the navigation links using CSS, but other fields like the number of results wouldn't match what is actually available in that case.

        Otherwise you could write some custom code to do this.

        Comment

        Working...