[Back to mnoGoSearch site]   [WebBoard]

Filter dt=er doesn't work

[Reply]   [Need more help?]

Posted by Alexander Barkov 2012-01-27 19:30:44

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


Thread:


Having problems with mnogosearch installation/configuration? You can significantly speed-up solution of your problems by purchasing our support.

Reply:

Login (Register) *
Password *
Name: *
Email:
Topic: *
Message
*
Link URL:
Link title:
Picture URL:
Send replies by e-mail:


[WebBoard] [Back]