如何在 Search portlet 中编辑每页搜索结果的结果值?

How to edit the result value of the search results per page in Search portlet?

您好,我已将搜索 portlet 添加到我的门户中。如您所见,每页显示的结果数默认值为20。我想将此大小更改为5。如何更改?

每页显示的默认条目数 - 增量 - 可以在门户中配置 -ext.properties:

##
## Search Container
##

    #
    # Set the default number of entries to display per page.
    #
    search.container.page.default.delta=20

其他值得一提的属性:

    #
    # Set the available values for the number of entries to display per page. An
    # empty value, or commenting out the value, will disable delta resizing.
    #
    # Always include the value specified in the property
    # "search.container.page.default.delta", since it is the default page size
    # when no delta is specified. The absolute maximum allowed delta is 200.
    #
    search.container.page.delta.values=5,10,20,30,50,75

    #
    # Set the maximum number of pages available above and below the currently
    # displayed page.
    #
    search.container.page.iterator.max.pages=25

    #
    # Set this to false to remove the pagination controls above or below
    # results.
    #
    search.container.show.pagination.top=true
    search.container.show.pagination.bottom=true