Webboard: Search.htm, LoadURLBasicInfo dont work

[email protected]
Newsgroups gmane.comp.web.mnogosearch.general
Message-ID <[email protected]>
Author: Alexander Barkov
Email: [email protected]
Message:
Hi,



> Hello,

> 

> i work with 3.3.9 on linux.

> 

> i have a problem to show the $(referrer) in search.htm and few other questions.

> 

> in http://www.mnogosearch.org/doc33/msearch-cmdref-loadurlbasicinfo.html ist written, that 

> LoadURLBasicInfo is on as default and i can take the variables. but they dont work, they are not showed.

> 

> if i write LoadURLBasicInfo in search.htm in the are "<!--variables", so i get "Unknown command: LoadURLBasicInfo".

> 

> 

> the follow variables in "res" will show (the empty are false):

>     Status:

>     Docsize:

>     Last-Modified: Thu, 10 Dec 2009, 02:18:52 CET

>     url: http://www...

>     next_index_time:

>     referrer:

>     crc32: -1589302504

>     site_id: -244666904

>     pop_rank: 0.00000





The correct variable names are:



Referrer=$(referrer-ID)

next=$(Next-Index-Time)

Docsize=$(Content-Length)





There's a bug that LoadURLBasicInfo is not recognized in search.htm



This patch is fixing this problem:



diff -u -p -r1.373 conf.c

--- conf.c	1 Dec 2009 14:16:46 -0000	1.373

+++ conf.c	5 Apr 2010 19:48:30 -0000

@@ -1479,6 +1479,7 @@ static UDM_CONFCMD commands[] = 

   {"HyphenateNumbers",     1,1,   env_rpl_bool_var},/* TODO       */

   {"StripAccents",         1,1,   env_rpl_bool_var},/* Documented */

   {"LoadURLInfo",          1,1,   env_rpl_bool_var},/* Documented */

+  {"LoadURLBasicInfo",     1,1,   env_rpl_bool_var},/* Documented */

   {"LoadTagInfo",          1,1,   env_rpl_bool_var},/* Documented */

   {"ComplexSynonyms",      1,1,   env_rpl_bool_var},



Version 3.3.10 will include this patch.

In the meantime use:



ReplaceVar LoadURLBasicInfo yes



or



ReplaceVar LoadURLBasicInfo no





Thanks for reporting!



> 

> is it a bug?

> 

> greeds

> henning

Reply: <http://www.mnogosearch.org/board/message.php?id=21066>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.