#22665 [Csd]: UDM_PARAM_PAGE_SIZE can not be retrieved.
| From: | gluke@php.net | Date: | Fri, 14 Mar 2003 08:16:17 +0000 |
| Subject: | #22665 [Csd]: UDM_PARAM_PAGE_SIZE can not be retrieved. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-35570@lists.php.net to get a copy of this message | ||
ID: 22665
Updated by: gluke@php.net
Reported By: jon at jellybob dot co dot uk
Status: Closed
Bug Type: mnoGoSearch related
Operating System: FreeBSD 4.6
PHP Version: 4.3.0
New Comment:
Why you need it so ?
For ex., you can save it value in your class after Udm_Set_Agent_Param
call.
I dont like to add this feature because of:
1. this value is not the search result property. Its the Udm_Agent
property. So, to fetch it we should add a new function call, for ex.
Udm_Get_Agent_Param, so this is not just a little fix, but significant
API addition.
2. mnogosearch library uses default values for many parameters, and if
you did not set it, php extension does not know its value, and cannot
fetch default value from library. Of course, you could say that we
could copy default values from mnogosearch, but this is the bad style
since defaults could be changed in futire fersions (and could differ in
earlier)
Previous Comments:
------------------------------------------------------------------------
[2003-03-13 10:07:08] jellybob@php.net
Is it possible to get this added?
I'm writing a PEAR wrapper for the mnoGoSearch functions, and it would
be really useful to be able to retrieve this value with my results.
------------------------------------------------------------------------
[2003-03-13 03:29:53] gluke@php.net
UDM_PARAM_PAGE_SIZE is Udm_Set_Agent_Param command.
You can set this parameter, not read since you are know what you how
you set it up.
Just for clarification: here is the list of acceptable command for
fetched search result (note, that this list is differ for different
mnogosearch versions, and most of all commands are available only with
latest mnogosearch version):
UDM_FIELD_URLID 1
UDM_FIELD_URL 2
UDM_FIELD_CONTENT 3
UDM_FIELD_TITLE 4
UDM_FIELD_KEYWORDS 5
UDM_FIELD_DESC 6
UDM_FIELD_TEXT 7
UDM_FIELD_SIZE 8
UDM_FIELD_RATING 9
UDM_FIELD_MODIFIED 10
UDM_FIELD_ORDER 11
UDM_FIELD_CRC 12
UDM_FIELD_CATEGORY 13
UDM_FIELD_LANG 14
UDM_FIELD_CHARSET 15
UDM_FIELD_SITEID 16
UDM_FIELD_POP_RANK 17
UDM_FIELD_ORIGINID 18
------------------------------------------------------------------------
[2003-03-12 17:08:57] sniper@php.net
Not enough information was provided for us to be able
to handle this bug. Please re-read the instructions at
http://bugs.php.net/how-to-report.php
If you can provide more information, feel free to add it
to this bug and change the status back to "Open".
Thank you for your interest in PHP.
------------------------------------------------------------------------
[2003-03-12 14:48:34] jon at jellybob dot co dot uk
When I attempt to retrieve the parameter UDM_PARAM_PAGE_SIZE from a
search result, it gives the error "Unknown mnoGoSearch param name".
The search is returning valid results.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=22665&edit=1