Webboard: Filter dt=er doesn't work

[email protected] 27 Jan 2012 15:30:44 -0000
Newsgroups gmane.comp.web.mnogosearch.general
Message-ID <[email protected]>
Author: Alexander Barkov
Email: [email protected]
Message:
Hi,



>  Hola,

> 

> Searching results newer 1.January 2012 doesn't work with Filter: dt=er

> 

> No Filter: Results from yesterday are in.

> 

> If i do "dt=back" "dp=1m" (One Month) Results are in and ok.

> If i do "dt=back" "dp=1w" (One Week) Results are emtpy  ( There are new things just from yesterday) 





1w is not supported. Please use 7d instead.





If i do "dt=er" "dp=1m" "dd=01&dm=0&dy=2012" starting 1.January 2012 Results are empty If i do "dt=er" "dp=1m" "dd=01&dm=0&dy=2011" starting 1.January 2011 Results ok with Results from 2012

> 





"dt=er&dp=1m&dd=01&dm=0&dy=2012"



Means "find newer than (January 1, 2012 plus one month)"



which is "find newer than February 1, 2012".



i.e. documents with modification date in the future.





Perhaps you want: "dt=er&dd=01&dm=0&dy=2012"



Means "find newer than (January 1, 2012)"





But unfortunately it does not work either. I found a bug  :)



This patch fixes the problem:





--- sql.c	15 Dec 2011 12:02:11 -0000	1.1462

+++ sql.c	27 Jan 2012 15:26:48 -0000

@@ -250,7 +250,7 @@

   }

   else if (!strcmp(var, "dm"))

   {

-    d->dm= (intval) ? intval : 1;

+    d->dm= intval; /* 0=Jan, 1=Feb,..., 11=Dec.*/

   }

   else if (!strcmp(var, "dy"))

   {





I've fixed this in 3.3.13 source.





> Checked the Template + Database + Files that are indexed.

> Everything points to the "dt=er" filter isn't okay.

> 

> Suggestions?

> 

> Regards

> JB

Reply: <http://www.mnogosearch.org/board/message.php?id=21415>