It seems the description length is now determined by UDM_MAXDESCSIZE in udm_common.h instead of UDM_MAXTEXTSIZE
udm_get_res_field
(PHP 4 >= 4.0.5, PHP 5 <= 5.0.5, PECL mnogosearch:1.0.0)
udm_get_res_field — Lit un champ de résultat mnoGoSearch
Description
string udm_get_res_field
( resource $res
, int $row
, int $field
)
Lit un champ de résultat mnoGoSearch.
Liste de paramètres
- res
-
res - un identifiant de résultat, obtenu après un appel à udm-find .
- row
-
row - le numéro du lien dans la page courante. Il peut valoir de 0 jusqu'à UDM_PARAM_NUM_ROWS-1 .
- field
-
field - l'identifiant de champ, et peut prendre l'une des valeurs suivantes :
- UDM_FIELD_URL : champ URL
- UDM_FIELD_CONTENT : champ "Content-type" (par exemple, "text/html").
- UDM_FIELD_CATEGORY - Champ catégorie du document. Utilisez udm_cat_path() pour récupérer le chemin complet de la catégorie courante depuis le dossier racine. (Ce paramètre est valable uniquement depuis la version 4.0.6 de PHP et suivantes)
- UDM_FIELD_TITLE : titre du document.
- UDM_FIELD_KEYWORDS : mots-clés du document (balise META KEYWORDS).
- UDM_FIELD_DESC : description du document (balise META DESCRIPTION).
- UDM_FIELD_TEXT : corps du document (balise body, les premières lignes pour donner une idée du document).
- UDM_FIELD_SIZE : taille du document.
- UDM_FIELD_URLID : identifiant unique de l'URL.
- UDM_FIELD_RATING : score de la page (calculé par mnoGoSearch).
- UDM_FIELD_MODIFIED : date de modification au format unixtimestamp.
- UDM_FIELD_ORDER : le nombre de documents trouvés.
- UDM_FIELD_CRC : la valeur CRC du document.
Valeurs de retour
Retourne la valeur du champ field dans la ligne row , du résultat res , et FALSE sinon.
udm_get_res_field
ctg-php at graysmark dot net
06-Apr-2004 12:01
06-Apr-2004 12:01
davidbullock at tech-center dot com
08-Sep-2001 11:07
08-Sep-2001 11:07
To further improve the "description" field quality, there are two additional techniques you can use.
First, you can define this value if you know it, by setting a description meta tag in the head section.
Second, mnogosearch has an <index></noindex> tag pair that appears to make the enclosed content completely invisible to the search engine. I've used this on the sites I maintain to 'vanish' the navigational elements, field names, and other non-content type HTML and page window dressing so that only the important content is indexed and reported on.
This last technique as an added (and more important benefit) of helping to eliminate a lot of false matches in searches.
davidbullock at tech-center dot com
08-Sep-2001 11:01
08-Sep-2001 11:01
The returned page description is only 100 characters long.
To store more information, you can change the appropriate database field length to 255 characters (field "description" in the table "url"), and change the following line in udm_common.h.
#define UDM_MAXTEXTSIZE 255
