downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

udm_get_res_param> <udm_get_doc_count
Last updated: Fri, 30 Oct 2009

view this page in

udm_get_res_field

(PHP 4 >= 4.0.5, PHP 5 <= 5.0.5, PECL mnogosearch >= 1.0.0)

udm_get_res_fieldErhalte ein mnoGoSearch Ergebenisfeld

Beschreibung

string udm_get_res_field ( resource $res , int $row , int $field )

udm_get_res_field() gibt den Wert eines Ergebnisfeldes bei Erfolg, FALSE bei einem Fehler zurück.

agent - Zeiger auf einen Agenten, erhalten nach einem Aufruf von udm_alloc_agent().

row - Die Zahl des aktuellen Links. Werte können zwischen 0 und UDM_PARAM_NUM_ROWS-1 variieren.

field - Feldzeiger, kann folgende Werte annehmen:

  • UDM_FIELD_URL - URL des Dokumentes
  • UDM_FIELD_CONTENT - Content-Type des Dokumentes (zum Beispiel text/html).
  • UDM_FIELD_CATEGORY - Kategorie des Dokumentes. udm_cat_path() sollte verwendet werden, um den vollen Pfad vom der Wurzel des Kategorienbaumes zur aktuellen Kategorie zu erhalten. (Dieser Parameter ist erst ab PHP Version 4.0.6 verfügbar).
  • UDM_FIELD_TITLE - Titel des Dokumentes.
  • UDM_FIELD_KEYWORDS - Keywords des Dokumentes (aus dem Meta-Tag Keywords).
  • UDM_FIELD_DESC - Dokumentenbeschreibung (aus dem Meta-Tag Description).
  • UDM_FIELD_TEXT - Inhalt des Dokumentes (die ersten Zeilen des Dokumentes).
  • UDM_FIELD_SIZE - Größe des Dokumentes.
  • UDM_FIELD_URLID - Eindeutige ID des Dokumentes.
  • UDM_FIELD_RATING - Dokumentenwertung (von mnoGoSearch berechnet).
  • UDM_FIELD_MODIFIED - Datum der letzten Änderung des Dokumentes als Unix-Timestamp.
  • UDM_FIELD_ORDER - Die Nummer des aktuellen Dokumentes in der Menge der gefundenen Dokumente.
  • UDM_FIELD_CRC - Die Prüfsumme des Dokumentes.


udm_get_res_param> <udm_get_doc_count
Last updated: Fri, 30 Oct 2009
 
add a note add a note User Contributed Notes
udm_get_res_field
kosh dot linux at gmail dot com
24-Apr-2009 06:07
Use the function udm_get_res_field_ex() to fetch "non-standard" sections.

Example:

<?php
$tags
= udm_get_res_field_ex($agent, $row, "meta.mytag");
?>
ctg-php at graysmark dot net
06-Apr-2004 07:01
It seems the description length is now determined by UDM_MAXDESCSIZE in udm_common.h instead of UDM_MAXTEXTSIZE
davidbullock at tech-center dot com
09-Sep-2001 06: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
09-Sep-2001 06: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

udm_get_res_param> <udm_get_doc_count
Last updated: Fri, 30 Oct 2009
 
 
show source | credits | stats | sitemap | contact | advertising | mirror sites