Академический Документы
Профессиональный Документы
Культура Документы
ATG Search supports two types of paging, normal paging and fast paging. The key
differences between them relate to the information you get back from the search
engine about the number of pages of results, and the navigation you can build
into your pages:
Normal paging is the default. In this mode, the search engine returns (in the form
handler’s pagesAvailable property), the total number of pages of results. You can
create links that enable the customer to go directly to any page.
Fast paging is specified by setting the fastPaging property of the search request to
true. In this mode, the search engine does not return information about the total
number of pages of results; pagesAvailable is set to the highest-numbered page
that has been rendered so far. You can enable customers to go to the next page
or to any page previously rendered.
The following example renders a list of the page numbers of all pages of results.
Each page number is a link to the corresponding results page, except for the
current page number, which is displayed without a link. For example, if
pagesAvailable is 43 and the current page is page 10, this code will render the
integers from 1 to 43, and all of these except 10 will be links. If the user clicks 22,
for example, a request to display page 22 will be issued.
The following example renders a list of the page numbers of the results pages that
have been rendered so far. Each page number is a link to the corresponding
results page, except for the current page number, which is displayed without a
link. In addition, the example renders the word “next” as a link to the page
following the current one.