text
stringlengths 1
254
| output
stringlengths 2
255
|
---|---|
Prev
|
(PHP 4 = 4.0.5)
|
udm_errno() returns mnoGoSearch error number, zero if no error.
|
udm_errno() ã¯ãmnoGoSearch ãšã©ãŒçªå·ãè¿ã㟠ãããšã©ãŒããªãå Žåã«ãŒããè¿ããŸãã
|
Receiving numeric agent error code.
|
agent - udm_alloc_agent() ãžã®ã³ãŒã«ããè¿ããããšãŒãžã§ ã³ãIDãžã®ãªã³ã¯
|
Home
|
æ°åã§ãšãŒãžã§ã³ããšã©ãŒã³ãŒããè¿ããŸãã
|
Prev
|
(PHP 4 = 4.0.5)
|
udm_error() returns mnoGoSearch error message, empty string if no error.
|
udm_error() ã¯ãmnoGoSearch ãšã©ãŒã¡ãã»ãŒãžã è¿ããŸãããšã©ãŒããªãå Žåã«ã¯ãç©ºã®æååãè¿ããŸãã
|
Receiving agent error message.
|
agent ã¯ããšãŒãžã§ã³ãIDãžã®ãªã³ã¯ã§ããã udm_alloc_agent() ãã³ãŒã«ããéã«åŸããããã® ã§ãã
|
Home
|
ãšãŒãžã§ã³ããšã©ãŒã¡ãã»ãŒãžãåŸãŸãã
|
udm_find() returns result link identifier on success, FALSE on error.
|
(PHP 4 = 4.0.5)
|
To find something just type words you want to find and press SUBMIT button.
|
udm_find() ã¯æåæã«çµæãªã³ã¯IDããšã©ãŒæã« FALSE ãè¿ããŸãã
|
If you use search mode ALL, search will return documents that contain both (or more) words you entered.
|
mnoGoSearch ã§ã¯æ¬¡ã®æŒç®åã䜿çšå¯èœã§ãã
|
If you want more advanced results you may use query language.
|
- è«çç©ãäŸãã°ã"mysql odbc"ã mnoGoSearch ã¯ãåèª "mysql" ããã³åèª "odbc" ãå«ãå
šãŠã®URLãèŠä»ããŸãã
|
_BAR_ - logical OR.
|
_BAR_ - è«çåãäŸãã°ã"mysql_BAR_odbc"ã mnoGoSearch ã¯ãåèª "mysql" ãŸãã¯åèª "odbc"ãå«ãå
šãŠã®URLãèŠ ä»ããŸãã
|
~ - logical NOT.
|
~ - è«çåŠå®ãäŸãã°ã"mysql ~odbc"ã mnoGoSearch ã¯ãåèª "mysql" ãå«ã¿ãåæã«åèª "odbc" ãå«ãŸãªãå
šãŠã®URLãæ¢ããŸãã~ã¯ãæå®ããåèª ãçµæããé€å€ããã ãã§ããããšã«æ³šæããŠäžãããã¯ãšãª "~odbc" ã¯äœãèŠä»ããŸãã!
|
Note that ~ just excludes given word from results.
|
() - ããè€éãªã¯ãšãªãäœæããããã®ã°ã«ãŒãåã³ãã³ããäŸãã°ã "(mysql _BAR_ msql) ~postgres"ãã¯ãšãªèšèªã¯ãç°¡åã§ ãããåæã«åŒ·åã§ããã¯ãšãªã¯éåžžã®è«çåŒãšåçãšèããŠäžããã
|
Prev
|
(PHP 4 = 4.0.5)
|
udm_free_agent() returns TRUE on success, FALSE on error.
|
udm_free_agent() ã¯æåæã« TRUE ããšã©ãŒæã« FALSE ãè¿ã ãŸãã
|
Freeing up memory allocated for agent session.
|
agent - udm_alloc_agent() ããè¿ããããšãŒãžã§ã³ãIDãž ã®ãªã³ã¯ã
|
udm_free_ispell_data
|
ãšãŒãžã§ã³ãã»ãã·ã§ã³çšã«ç¢ºä¿ãããã¡ã¢ãªãéæŸããŸãã
|
Prev
|
(PHP 4 = 4.0.5)
|
udm_free_ispell_data() always returns TRUE.
|
udm_free_ispell_data() ã¯ãåžžã« TRUE ãè¿ããŸãã
|
Note:
|
agent - udm_alloc_agent() ã«ããåŸããããšãŒãžã§ã³ããªã³ ã¯IDã
|
Prev
|
泚æ ãã®é¢æ°ã¯ãmnoGoSearchããŒãžã§ã³3.1.12以éã§ãµããŒãããã颿°ã§ã ãã以åã®ããŒãžã§ã³ã§ã¯ãµããŒããããŠããŸããã
|
(PHP 4 = 4.0.5)
|
(PHP 4 = 4.0.5)
|
res - a link to result identifier, received after call to udm_find().
|
udm_free_res() ã¯æåæã« TRUE ããšã©ãŒæã« FALSE ãè¿ã ãŸãã
|
Prev
|
res - udm_find() ããè¿ ãããçµæIDãžã®ãªã³ã¯ã
|
udm_free_ispell_data
|
çµæçšã«ç¢ºä¿ãããã¡ã¢ãªãéæŸããŸãã
|
Prev
|
(PHP 4 = 4.0.5)
|
udm_get_doc_count() returns number of documents in database.
|
udm_get_doc_count() returns number of documents in database.
|
Note:
|
agent - link to agent identifier, received after call to udm_alloc_agent().
|
Prev
|
泚æ This function is supported only in mnoGoSearch 3.1.11 or later.
|
Prev
|
(PHP 4 = 4.0.5)
|
(PHP 4 = 4.0.5)
|
udm_get_res_field() ã¯ãæåæã«çµæãã£ãŒã«ãã ãšã©ãŒæã« FALSE ãè¿ããŸãã
|
udm_get_res_field() returns result field value on success, FALSE on error.
|
res - udm_find() ããè¿ ãããçµæIDãžã®ãªã³ã¯ã
|
row - the number of the link on the current page.
|
row - ã«ã¬ã³ãããŒãžã®ãªã³ã¯çªå·ã0ãã UDM_PARAM_NUM_ROWS ãŸã§ã®çªå·ã
|
May have values from 0 to UDM_PARAM_NUM_ROWS-1.
|
field - ãã£ãŒã«ãIDãæ¬¡ã®å€ã®ã©ããã
|
field - field identifier, may have the following values:
|
UDM_FIELD_URL - ããã¥ã¡ã³ãURLãã£ãŒã«ã
|
UDM_FIELD_CONTENT - document Content-type field (for example, text / html).
|
UDM_FIELD_CONTENT - ããã¥ã¡ã³ãContent-typeãã£ãŒã«ã (äŸãã°ã text/html)
|
UDM_FIELD_CATEGORY - document category field.
|
UDM_FIELD_TITLE - ããã¥ã¡ã³ãã®titleãã£ãŒã«ãã
|
Use udm_cat_path() to get full path to current category from the categories tree root. (This parameter is available only in PHP 4.0.6 or later).
|
UDM_FIELD_KEYWORDS - ããã¥ã¡ã³ãkeywordsãã£ãŒã«ã(META KEYWORDSã¿ã°ãã)
|
UDM_FIELD_KEYWORDS - document keywords field (from META KEYWORDS tag).
|
UDM_FIELD_DESC - ããã¥ã¡ã³ãdescriptionãã£ãŒã«ã (META DESCRIPTIONã¿ã°ãã)
|
UDM_FIELD_TEXT - document body text (the first couple of lines to give an idea of what the document is about).
|
UDM_FIELD_TEXT - ããã¥ã¡ã³ã body ããã¹ã (æåã®æ°è¡ã§ãã㥠ã¡ã³ãã®å
容ã«é¢ããã¢ã€ãã¢ã瀺ã)ã
|
UDM_FIELD_URLID - unique URL ID of the link.
|
UDM_FIELD_SIZE - ããã¥ã¡ã³ãã®ãµã€ãºã
|
UDM_FIELD_RATING - page rating (as calculated by mnoGoSearch).
|
UDM_FIELD_URLID - ãªã³ã¯ãžã®ãŠããŒã¯ãªURL IDã
|
UDM_FIELD_ORDER - the number of the current document in set of found documents.
|
UDM_FIELD_RATING - (mnoGoSearchã§èšç®ããã)ããŒãžã®ã¬ãŒãã£ã³ ã°ã
|
Prev
|
UDM_FIELD_MODIFIED - unixtime圢åŒã®last-modifiedãã£ãŒã«ãã
|
udm_get_doc_count
|
UDM_FIELD_ORDER - èŠã€ãã£ãããã¥ã¡ã³ãã®äžã®ã«ã¬ã³ãã®ãã㥠ã¡ã³ãã®æ°
|
udm_get_res_param
|
UDM_FIELD_CRC - ããã¥ã¡ã³ãCRCã
|
(PHP 4 = 4.0.5)
|
(PHP 4 = 4.0.5)
|
res - a link to result identifier, received after call to udm_find().
|
udm_get_res_param() ã¯æåæã«çµæãã©ã¡ãŒã¿ã è¿ããŸãããšã©ãŒæã« FALSE ãè¿ããŸãã
|
UDM_PARAM_NUM_ROWS - number of received found links on the current page.
|
res - udm_find() ããè¿ ãããçµæIDãžã®ãªã³ã¯ã
|
UDM_PARAM_FOUND - total number of results matching the query.
|
param - ãã©ã¡ãŒã¿IDã§ãããæ¬¡ã®å€ã®ã©ãã ãšãªããŸãã
|
E.g. search for "a good book" will return "a: stopword, good:5637, book:
|
UDM_PARAM_NUM_ROWS - ã«ã¬ã³ãã®ããŒãžã§èŠä»ãã£ããªã³ã¯ã®æ°ã å
šãŠã®æ€çŽ¢ããŒãžã§ã®æåŸã®ããŒãžã§ã®UDM_PARAM_PAGE_SIZEãæ®ãã® ãªã³ã¯ã«çããã
|
UDM_PARAM_SEARCHTIME - search time in seconds.
|
UDM_PARAM_FOUND - ã¯ãšãªã«ãããããçµæã®åèšã®æ°
|
UDM_PARAM_LAST_DOC - the number of the last document displayed on current page.
|
UDM_PARAM_WORDINFO - èŠä»ãã£ãåèªã«é¢ããæ
å ±ãäŸãã°ã"a good book" ã«é¢ããã¯ãšãªã¯ "a: stopword, good:5637, book: 120" ãè¿ããŸãã
|
Home
|
UDM_PARAM_SEARCHTIME - ç§åäœã®æ€çŽ¢æéã
|
udm_get_res_field
|
UDM_PARAM_FIRST_DOC - ã«ã¬ã³ãã®ããŒãžã«è¡šç€ºãããæåã®ãã㥠ã¡ã³ãã®æ°ã
|
udm_load_ispell_data
|
UDM_PARAM_LAST_DOC - ã«ã¬ã³ãã®ããŒãžã«è¡šç€ºãããæåŸã®ããã¥ã¡ ã³ãã®æ°ã
|
var - parameter, indicating the source for ispell data.
|
(PHP 4 = 4.0.5)
|
The fastest mode is UDM_ISPELL_TYPE_SERVER.
|
udm_load_ispell_data() ã¯ãispellããŒã¿ãããŒã ããŸããæåæã« TRUE ããšã©ãŒæã« FALSE ãè¿ããŸãã
|
The above pattern is TRUE for mnoGoSearch 3.1.10 - 3.1.11.
|
agent - agent link identifier, received after call to udm_alloc_agent().
|
UDM_ISPELL_TYPE_DB - indicates that ispell data should be loaded from SQL.
|
var - parameter, indicating the source for ispell data. May have the following values:
|
In case of loading ispell data from files there may be several calls to udm_load_ispell_data(), and there is no sense to sort data after every call, but only after the last one.
|
After using this function to free memory allocated for ispell data, please use udm_free_ispell_data(), even if you use UDM_ISPELL_TYPE_SERVER mode.
|
UDM_ISPELL_TYPE_AFFIX - indicates that ispell data should be loaded from file and initiates loading affixes file.
|
UDM_ISPELL_TYPE_DB - indicates that ispell data should be loaded from SQL. In this case, parameters val1 and val2 are ignored and should be left blank. flag should be equal to 1.
|
Error message text cannot be accessed through udm_error() and udm_errno(), since those functions can only return messages associated with SQL.
|
Example:
|
Please note, that if a relative path entered, the module looks for the file not in UDM_CONF_DIR, but in relation to current path, i.e. to the path where the script is executed.
|
Example:
|
In case of error in this mode, e.g. if file is absent, the function will return FALSE, and an error message will be displayed.
|
泚æ flag is equal to 1 only in the last call.
|
Udm_Load_Ispell_Data( $udm,UDM_ISPELL_TYPE_SPELL ,'en' ,' / opt / ispell / en.dict',0)) _BAR_ _BAR_ (!
|
泚æ flag is equal to 1 only in the last call.
|
In case of errors, e.g. if spellserver is not running or invalid host indicated, there are no messages returned and ispell conversion does not work.
|
泚æ ãã®é¢æ°ã¯ãmnoGoSearch 3.1.12以éã§ã®ã¿å©çšå¯èœã§ãã
|
if (!udm_load_ispell_data($udm,UDM_ISPELL_TYPE_SERVER ,'' ,'',1)) {printf("Error loading ispell data from server br \n"); exit;}
|
äŸ:
|
Warning
|
(PHP 4 = 4.2.0)
|
Prev
|
ãã®é¢æ°ã¯ã çŸåšã®ãšããè©³çŽ°ãªæ
å ±ã¯ãããŸãããåŒæ°ã®ãªã¹ãã®ã¿ã èšè¿°ãããŠããŸãã
|
Prev
|
(PHP 4 = 4.0.5)
|
udm_set_agent_param() returns TRUE on success, FALSE on error.
|
udm_set_agent_param() ã¯æåæã« TRUE ããšã©ãŒæã« FALSE ãè¿ã ãŸããmnoGoSearch ã»ãã·ã§ã³ãã©ã¡ãŒã¿ãå®çŸ©ããŸãã
|
The following parameters and their values are available:
|
以äžã®ãã©ã¡ãŒã¿ããã³ãããã®å€ãå©çšå¯èœã§ãã
|
UDM_PARAM_PAGE_SIZE - number of search results displayed on one page.
|
UDM_PARAM_PAGE_NUM - ã¯ããŒãžçªå·ãæ€çŽ¢çµæãšããããã«äœ¿çšã ããŸãã(çµæã¯ãããŒãžæ¯ã«UDM_PARAM_PAGE_SIZEåã®çµæãæãã0 ããå§ãŸãããŒãžã§è¿ãããŸã)
|
The following values available:
|
UDM_PARAM_PAGE_SIZE - ã¯äžããŒãžã«è¡šç€ºãããæ€çŽ¢çµæã®æ°ã
|
See udm_find() for details on boolean search.
|
UDM_PARAM_SEARCH_MODE - æ€çŽ¢ã¢ãŒããæ¬¡ã®å€ãå©çšå¯èœã§ãã: UDM_MODE_ALL - å
šãŠã®åèªãæ€çŽ¢ããŸãã; UDM_MODE_ANY - å
šãŠã®åèªã§æ€çŽ¢ãã; UDM_MODE_PHRASE - çèªæ€çŽ¢; UDM_MODE_BOOL - è«ç倿€çŽ¢ãè«ç倿€çŽ¢ã«é¢ãã詳现ã«ã€ããŠã¯ udm_find() ãåç
§äžããã
|
In case a similar search is performed later, the engine will take results from the cache for faster performance.
|
UDM_PARAM_CACHE_MODE - æ€çŽ¢çµæã®ãã£ãã·ã¥ã¢ãŒãããªã³ãŸãã¯ãª ãã«ããŸããæå¹ã®å Žåãæ€çŽ¢ãšã³ãžã³ã¯æ€çŽ¢çµæããã£ã¹ã¯ã«ä¿å ããŸãã䌌ããããªæ€çŽ¢ãåŸã§å®è¡ãããå Žåããšã³ãžã³ã¯ããé«é ã«ãã£ãã·ã¥ããçµæãåŸãããšãå¯èœã§ãã å©çšå¯èœãªå€: UDM_CACHE_ENABLED, UDM_CACHE_DISABLED.
|
For MySQL, use create / mysql / track.txt.
|
çèªæ€çŽ¢ã®äŸ:
|
Available values:
|
"Arizona desert" - ãã®ã¯ãšãªã¯ã"Arizona desert"ãçèªãšããŠå« ãå
šãŠã®ããã¥ã¡ã³ããè¿ããŸããçèªã®ååŸã«äºéåŒçšç¬Šãå¿
èŠã§ ããããšã«æ³šæããŠäžããã
|
UDM_PARAM_PHRASE_MODE - defines whether index database using phrases ("phrase "parameter in indexer.conf).
|
UDM_PARAM_CHARSET - ããŒã«ã«ãªcharsetãå®çŸ©ããŸããå©çšå¯èœãªå€: mnoGoSearchã«ãããµããŒããããcharsetã®çµ, äŸãã°ãkoi8-r, cp1251,...
|
In 3.1.10 version of mnoGoSearch phrase search is supported only in sql and built-in database modes, while beginning with 3.1.11 phrases are supported in cachemode as well.
|
UDM_PARAM_STOPFILE - stopfileã®ååãšãã¹ãå®çŸ©ããŸãã (mnoGoSearchãšè¥å¹²éãããããŸããã€ãŸããmnoGoSearchã«ãããŠã¯ã çžå¯Ÿãã¹ãŸãã¯ãã¹ãå
¥åãããªãã£ãå ŽåãUDM_CONF_DIRã«é¢ã㊠ãã®ãã¡ã€ã«ãæ¢ãããŸããã¢ãžã¥ãŒã«ã¯ããã®ãã¡ã€ã«ãã«ã¬ã³ã ã®ãã¹(ããªãã¡ãPHPã¹ã¯ãªãããå®è¡ããããã¹)ã§æ¢ããŸãã
|
Notice that you need to put double quotes around the phrase
|
UDM_PARAM_STOPTABLE - æå®ããSQLããŒãã«ãã忢åèªãããŒãã ãŸããè€æ°ã®StopwordTableã³ãã³ãã䜿çšå¯èœã§ãããã®ã³ãã³ãã¯ã SQLããŒã¿ããŒã¹ãµããŒããæå¹ã«ããã«ã³ã³ãã€ã«ããå Žåã¯äœ¿çšã§ ããŸããã
|
UDM_PARAM_WEIGHT_FACTOR - represents weight factors for specific document parts.
|
åãããã¥ã¡ã³ãã«ããã€ãã®åèªãè€æ°åçŸããå Žåã indexerãåèªã®éã¿ã«ORæŒç®åã䜿çšããã®ã§ãç°ãªã£ãããã¥ã¡ã³ ãã®éšåã«åèªãçŸããåæ°ãæ€åºå¯èœã§ããããã£ãŒã«ã®ã¿çŸãã åèªã¯ã(2鲿šèšã§)éã¿éå00000010ãæããŸããå
šãŠã®ããã¥ã¡ã³ ãéšåã§äœ¿çšãããåèªã¯ãéã¿éå 00011111 ãæããŸãã
|
To activate this feature please use degrees of 2 in *Weight commands of the indexer.conf.
|
ãã®ãã©ã¡ãŒã¿ã®å€ã¯ã16鲿°æåå ABCDE ã§ããåæ¡ã¯ãåèªéã¿ ã®å¯Ÿå¿ãããããã®å åã§ããäžã§æå®ããéã¿èšå®ã¯æ¬¡ã®ããã«ãª ããŸãã
|
As far as indexer uses bit OR operation for word weights when some word presents several time in the same document, it is possible at search time to detect word appearance in different document parts.
|
E is a factor for weight 1 (URL Weight bit) D is a factor for weight 2 (BodyWeight bit) C is a factor for weight 4 (TitleWeight bit) B is a factor for weight 8 (KeywordWeight bit) A is a factor for weight 16 (DescWeight bit)
|
Word which appears only in the body will have 00000010 argegate weight (in binary notation).
|
äŸ:
|
This parameter 's value is a string of hex digits ABCDE.
|
UDM_PARAM_WEIGHT_FACTOR=00001 ã¯ãURLã®ã¿ãæ€çŽ¢ããŸãã
|
For the given above weights configuration:
|
UDM_PARAM_WEIGHT_FACTOR=00100 ã¯ãTitleã®ã¿ãæ€çŽ¢ããŸãã
|
Examples:
|
UDM_PARAM_WEIGHT_FACTOR=11100 ã¯ãTitle,Keywords,Desctriptionã æ€çŽ¢ããŸãããURL ãš Bodyã¯æ€çŽ¢ããŸããã
|
UDM_PARAM_WEIGHT_FACTOR=00100 will search through Titles only.
|
UDM_PARAM_WEIGHT_FACTOR=F9421 ã¯ãæ¬¡ã®æ€çŽ¢ãè¡ããŸãã
|
UDM_PARAM_WEIGHT_FACTOR=F9421 will search through:
|
Description with factor 15 (F hex) Keywords with factor 9 Title with factor 4 Body with factor 2 URL with factor 1
|
If UDM_PARAM_WEIGHT_FACTOR variable is ommited, original weight value is taken to sort results.
|
UDM_PARAM_WEIGHT_FACTOR 倿°ãçç¥ãããå Žåãå
ã®éã¿ã®å€ã¯ãœãŒ ãçµæããåŒãåºãããŸããäžèšã§æå®ããéã¿èšå®ã®å Žåããã㥠ã¡ã³ãã®Descriptionã¯ãæå€§éã¿16ãæããããã¥ã¡ã³ãã® descriptionãæå³ããŸãã
|
UDM_PARAM_WORD_MATCH - word match.
|
UDM_PARAM_WORD_MATCH - åèªã«ãããããã®ãã©ã¡ãŒã¿ãåèªæ€çŽ¢å ãéžæããéã«äœ¿çšå¯èœã§ãããã®æ©èœã¯ã"single"ããã³"multi"ã¢ãŒ ãã§SQLããŒã¿ããŒã¹ããã³çµã¿èŸŒã¿ã®ããŒã¿ããŒã¹ã䜿çšããå Žåã« ã®ã¿åäœããŸãããã®æ©èœã¯ãcachemodeããã³ä»ã®ã¢ãŒãã§ã¯åäœã ãŸãããããã¯ããããã®ã¢ãŒãããåèªCRCã䜿çšããŠãããéšåæ ååæ€çŽ¢ããµããŒãããŠããªãããã§ãã å©çšå¯èœãªå€ã¯æ¬¡ã®ããã«ãªããŸãã
|
This feature works only in "single" and "multi "modes using SQL based and built-in database.
|
UDM_MATCH_BEGIN - åèªã®å§ãã«ããã
|
Available values:
|
UDM_MATCH_END - åèªã®çµãã«ããã
|
UDM_MATCH_END - word ending match;
|
UDM_MATCH_WORD - åèªå
šäœã«ããã
|
UDM_PARAM_MIN_WORD_LEN - defines minimal word length.
|
UDM_MATCH_SUBSTR - åèªã®éšåæååã«ããã
|
Please note that this parameter value is inclusive, i.e. if UDM_PARAM_MIN_WORD_LEN=3, a word 3 characters long will not be considered a stopword, while a word 2 characters long will be.
|
UDM_PARAM_MIN_WORD_LEN - åèªã®æçé·ãå®çŸ©ããŸãã ãã®å¶éããçãåèªã¯ãstopwordãšã¿ãªãããŸãããã®ãã©ã¡ãŒã¿ ã¯ãã®å€èªèº«ãç¯å²ã«å«ãããšã«æ³šæããŠäžãããã€ãŸãã UDM_PARAM_MIN_WORD_LEN=3 ã®å Žåã3æåã®é·ãã®åèªã¯stopwordãš èŠãªãããŸãããã2æåã®åèªã¯stopwordãšã¿ãªãããŸããããã©ã« ãã¯1ã§ãã
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.