Discussion:
Webboard: Filter dt=er doesn't work
g***@mnogosearch.org
2012-01-27 07:26:35 UTC
Permalink
Author: John Barchet
Email: ***@netznacht.de
Message:
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) 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



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=21409>
g***@mnogosearch.org
2012-01-27 15:30:44 UTC
Permalink
Author: Alexander Barkov
Email: ***@mnogosearch.org
Message:
Hi,
Post by g***@mnogosearch.org
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.
Post by g***@mnogosearch.org
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>

Loading...