略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: udm_get_res_param

2024-12-22

udm_get_res_param

(PHP 4 >= 4.0.5, PHP 5 < 5.1.0, PECL mnogosearch >= 1.0.0)

udm_get_res_paramGet mnoGoSearch result parameters

说明

udm_get_res_param ( resource $res , int $param ) : string

Gets the mnoGoSearch result parameters.

参数

res

res - a link to result identifier, received after call to udm_find().

param

param - parameter identifier, may have the following values:

  • UDM_PARAM_NUM_ROWS - number of received found links on the current page. It is equal to UDM_PARAM_PAGE_SIZE for all search pages, on the last page - the rest of links.
  • UDM_PARAM_FOUND - total number of results matching the query.
  • UDM_PARAM_WORDINFO - information on the words found. E.g. search for "a good book" will return "a: stopword, good:5637, book: 120"
  • UDM_PARAM_SEARCHTIME - search time in seconds.
  • UDM_PARAM_FIRST_DOC - the number of the first document displayed on current page.
  • UDM_PARAM_LAST_DOC - the number of the last document displayed on current page.

返回值

udm_get_res_param() returns result parameter value on success, FALSE on error.

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/function.udm-get-res-param.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3