php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #22665 UDM_PARAM_PAGE_SIZE can not be retrieved.
Submitted: 2003-03-12 14:48 UTC Modified: 2003-03-14 02:16 UTC
From: jon at jellybob dot co dot uk Assigned:
Status: Closed Package: mnoGoSearch related
PHP Version: 4.3.0 OS: FreeBSD 4.6
Private report: No CVE-ID: None
 [2003-03-12 14:48 UTC] 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.

Patches

Add a Patch

Pull Requests

Add a Pull Request

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2003-03-12 17:08 UTC] 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-13 03:29 UTC] 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-13 10:07 UTC] 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-14 02:16 UTC] gluke@php.net
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)
 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Fri Mar 29 08:01:27 2024 UTC