PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

Way to limit number of search results returned

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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


    • #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


      • #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...
        X