Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

udm_add_search_limit(3) [php man page]

UDM_ADD_SEARCH_LIMIT(3) 						 1						   UDM_ADD_SEARCH_LIMIT(3)

udm_add_search_limit - Add various search limits

SYNOPSIS
bool udm_add_search_limit (resource $agent, int $var, string $val) DESCRIPTION
udm_add_search_limit(3) adds search restrictions. PARAMETERS
o $agent - A link to Agent, received after call to udm_alloc_agent(3). o $var - Defines the parameter, indicating limits. Possible $var values: o UDM_LIMIT_URL - defines document URL limitations to limit the search through subsection of the database. It supports SQL % and _ LIKE wildcards, where % matches any number of characters, even zero characters, and _ matches exactly one character. E.g. http://www.example.___/catalog may stand for http://www.example.com/catalog and http://www.example.net/catalog. o UDM_LIMIT_TAG - defines site TAG limitations. In indexer-conf you can assign specific TAGs to various sites and parts of a site. Tags in mnoGoSearch 3.1.x are lines, that may contain metasymbols % and _. Metasymbols allow searching among groups of tags. E.g. there are links with tags ABCD and ABCE, and search restriction is by ABC_ - the search will be made among both of the tags. o UDM_LIMIT_LANG - defines document language limitations. o UDM_LIMIT_CAT - defines document category limitations. Categories are similar to tag feature, but nested. So you can have one category inside another and so on. You have to use two characters for each level. Use a hex number going from 0-F or a 36 base number going from 0-Z. Therefore a top-level category like 'Auto' would be 01. If it has a subcategory like 'Ford', then it would be 01 (the parent category) and then 'Ford' which we will give 01. Put those together and you get 0101. If 'Auto' had another subcategory named 'VW', then it's id would be 01 because it belongs to the 'Ford' category and then 02 because it's the next category. So it's id would be 0102. If VW had a sub category called 'Engine' then it's id would start at 01 again and it would get the 'VW' id 02 and 'Auto' id of 01, making it 010201. If you want to search for sites under that category then you pass it cat=010201 in the URL. o UDM_LIMIT_DATE - defines limitation by date the document was modified. Format of parameter value: a string with first character < or >, then with no space - date in unixtime format, for example: Example #1 <?php udm_add_search_limit($udm, UDM_LIMIT_DATE, "&lt;908012006"); ?> If > character is used, then the search will be restricted to those documents having a modification date greater than entered, if <, then smaller. o $val - Defines the value of the current parameter. RETURN VALUES
Returns TRUE on success or FALSE on failure. PHP Documentation Group UDM_ADD_SEARCH_LIMIT(3)

Check Out this Related Man Page

CATOPEN(3)						   BSD Library Functions Manual 						CATOPEN(3)

NAME
catopen -- open message catalog LIBRARY
Standard C Library (libc, -lc) SYNOPSIS
#include <nl_types.h> nl_catd catopen(const char *name, int oflag); DESCRIPTION
The catopen() function opens the message catalog specified by name and returns a message catalog descriptor. If name contains a '/' then name specifies the full pathname for the message catalog, otherwise the value of the environment variable NLSPATH is used with the following substitutions: %N The value of the name argument. %L The value of the LANG environment variable or the LC_MESSAGES category (see below). %l The language element from the LANG environment variable or from the LC_MESSAGES category. %t The territory element from the LANG environment variable or from the LC_MESSAGES category. %c The codeset element from the LANG environment variable or from the LC_MESSAGES category. %% A single % character. An empty string is substituted for undefined values. Path names templates defined in NLSPATH are separated by colons (':'). A leading or two adjacent colons is equivalent to specifying %N. If the oflag argument is set to the NL_CAT_LOCALE constant, LC_MESSAGES locale category used to open the message catalog; using NL_CAT_LOCALE conforms to the X/Open Portability Guide Issue 4 (``XPG4'') standard. You can specify 0 for compatibility with X/Open Portability Guide Issue 3 (``XPG3''); when oflag is set to 0, the LANG environment variable determines the message catalog locale. A message catalog descriptor remains valid in a process until that process closes it, or until a successful call to one of the exec(3) func- tion. RETURN VALUES
Upon successful completion, catopen() returns a message catalog descriptor. Otherwise, (nl_catd) -1 is returned and errno is set to indicate the error. ERRORS
[EINVAL] Argument name does not point to a valid message catalog, or catalog is corrupt. [ENAMETOOLONG] An entire path to the message catalog exceeded 1024 characters. [ENOENT] The named message catalog does not exists, or the name argument points to an empty string. [ENOMEM] Insufficient memory is available. SEE ALSO
gencat(1), catclose(3), catgets(3), setlocale(3) STANDARDS
The catopen() function conforms to IEEE Std 1003.1-2001 (``POSIX.1''). BSD
February 12, 2005 BSD
Man Page