PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

Only return x number of search results

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

  • Only return x number of search results

    Hi All

    We are using the CGI script. Is there a way to only return a defined number of results for a search query?

    Alternately, is there a way to only return one page (no "Next >>" links at bottom of page one) of search results?

    Thanks

  • #2
    You can set the URL parameter, zoom_per_page=XX
    Where XX is the number of results to display.

    If you wish to do this on a HTML page without using a drop down form element, you can use a hidden field.

    See these two past posts for more details.
    Reducing number of results displayed per page
    Default Results Per Page

    Comment


    • #3
      Hi Ray

      We only want to display one page of results. Currently, a search query "testxxx" returns 5 pages of 10 results per page as an example.

      We are looking for a way to get the same search query to only return one page of 10 results without links to pages 2, 3, etc. at the bottom of the page.

      Any ideas on how to achieve this?

      Thanks

      Comment


      • #4
        So you want it to say "50 results found" but yet only allow you to see the first 10, and there's no way of seeing the rest?

        If that's the case, you could hide the "Results Pages: 1 2 3 Next>>" links with CSS. That part of the page is enclosed within the "result_pages" class and a CSS attribute such as "display: none;" will prevent it from being rendered.

        Not sure if that's the best idea though, the user would likely be confused. You could also hide the "50 results found" message in a similar fashion. More information on customizing the appearance of your search page with CSS here:
        http://www.wrensoft.com/zoom/support/css.html
        --Ray
        Wrensoft Web Software
        Sydney, Australia
        Zoom Search Engine

        Comment


        • #5
          Thanks Ray

          The CSS route works perfectly. We will use a different CSS file for pages that we want to display this way.

          Cheers

          Comment

          Working...
          X