Sponsored Content
The Lounge What is on Your Mind? Please Welcome Akshay Hegde to the Moderation Team Post 303038428 by Neo on Tuesday 3rd of September 2019 05:40:09 AM
Old 09-03-2019
Please Welcome Akshay Hegde to the Moderation Team

Dear All,

Following our policy for forum moderators to have active LinkedIn profiles (and also to increase mod team diversity), please join me in congratulating the newest addition to our mod team, Akshay Hegde:

Akshay Hegde on LinkedIn

Akshay has been very helpful to the site over the years providing a lot of ideas about web devops, site optimization and helping me write and test database queries when we were writing new code for the site. In addition, Akshay serves the LinkedIn community as a moderator on our career and business focused LinkedIn group.

Moderating user posts is a bit of a thankless task; editing posts and adding code tags and other formatting tasks and helping all the new members learn and follow forum rules, so having Akshay on board, who is really a nice guy, is very good for everyone here.

Plus, we need to give a break to some of the mods who have been editing posts and adding code tags over the years and bring in some new ideas as well.

In closing, I want to thank all past moderators for their hard work moderating users, enforcing rules, adding tags of all kinds, and for their continued support to unix and linux users in daily technical Q&A.

Welcome Akshay!
These 6 Users Gave Thanks to Neo For This Post:
 
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)
All times are GMT -4. The time now is 05:47 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy