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.

相关文章
php ibm db2 函数 returns a result set listing stored procedure parametersphp ingres 函数 free the resources associated with a result identifierphp ldap 函数 free result memoryphp ldap 函数 get the next attribute in resultphp maxdb 函数 fetch a result row as an associative a numeric array or bothphp maxdb 函数 别名 maxdb stmt result metadataphp maxdb 函数 return the number of rows in statements result setphp msql 函数 free result memoryphp mysql xdevapi 函数 bind prepared statement variables as parametersphp 别名和过时的 mysqli 函数 mysqli stmt result metadata 的别名php postgresql 函数 sends a request to execute a prepared statement with given parameters and waits for the resultphp postgresql 函数 submits a request to create a prepared statement with the given parameters and waits for completionphp postgresql 函数 submits a command to the server and waits for the result with the ability to pass parameters separately from the sql command textphp postgresql 函数 sends a request to execute a prepared statement with given parameters without waiting for the result s php postgresql 函数 submits a command and separate parameters to the server without waiting for the result s php sqlite 函数 fetches the current row from a result set as an arrayphp mnogosearch 函数 free mnogosearch resultphp mnogosearch 函数 fetch a result fieldphp mnogosearch 函数 get mnogosearch result parametersphp mnogosearch 函数 set mnogosearch agent session parameters
关注编程学问公众号