PHP mnoGoSearch Functions

EditRocket provides the following information on mnoGoSearch functions in the PHP source code builder.

bool udm_add_search_limit ( resource $agent , int $var , string $val ) - udm_add_search_limit() adds search restrictions.

resource udm_alloc_agent ( string $dbaddr [, string $dbmode ] ) - Allocate a mnoGoSearch session.

resource udm_alloc_agent_array ( array $databases ) - udm_alloc_agent_array() will create an agent with multiple database connections.

int udm_api_version ( void ) - Gets the mnoGoSearch API version.

array udm_cat_list ( resource $agent , string $category ) - Gets all the categories on the same level with the current one.

array udm_cat_path ( resource $agent , string $category ) - Returns an array describing the path in the categories tree from the tree root to the current one, specified by category.

bool udm_clear_search_limits ( resource $agent ) - udm_clear_search_limits() resets defined search limitations.

int udm_errno ( resource $agent ) - Receiving numeric agent error code.

string udm_error ( resource $agent ) - Gets the agent error message.

resource udm_find ( resource $agent , string $query ) - Performs a search.

int udm_free_agent ( resource $agent ) - Freeing up memory allocated for agent session.

bool udm_free_ispell_data ( int $agent ) - Frees the memory allocated for ispell data.

bool udm_free_res ( resource $res ) - Freeing up memory allocated for results.

int udm_get_doc_count ( resource $agent ) - udm_get_doc_count() returns the number of documents in the database.

string udm_get_res_field ( resource $res , int $row , int $field ) - Fetch a mnoGoSearch result field.

string udm_get_res_param ( resource $res , int $param ) - Gets the mnoGoSearch result parameters.

int udm_hash32 ( resource $agent , string $str ) - udm_hash32() will take a string str and return a quite unique 32-bit hash number from it.

bool udm_load_ispell_data ( resource $agent , int $var , string $val1 , string $val2 , int $flag ) - udm_load_ispell_data() loads ispell data.

bool udm_set_agent_param ( resource $agent , int $var , string $val ) - Defines mnoGoSearch session parameters.