Re: Question on functions

2011-09-01 Thread Alexei Martchenko
We put here



dismax
...
...
recip(ms(NOW,sear_dataupdate),3.16e-11,1,1)
...


2011/9/1 Craig Stadler 

> Regarding :
> http://wiki.apache.org/solr/**FunctionQuery#Date_Boosting
>
> Specifcally : recip(ms(NOW/HOUR,mydatefield)**,3.16e-11,1,1).
>
> I am using dismax, and I am very unsure on where to put this or call the
> function... for example in the fq= param??, in the q= param?
>
> Sample query :
> http://localhost:8983/solr/**dismax/?q="george
> clooney"&mm=48%25&debugQuery=**off&indent=on&start=&rows=10
> If I want to factor in score/date (called creationdate)...
>
> recip(ms(NOW/HOUR,**creationdate),3.16e-11,1,1).
>
> Help! and thanks so much for any examples or help..
> -Craig
>
>
>


-- 

*Alexei Martchenko* | *CEO* | Superdownloads
ale...@superdownloads.com.br | ale...@martchenko.com.br | (11)
5083.1018/5080.3535/5080.3533


Question on functions

2011-09-01 Thread Craig Stadler

Regarding :
http://wiki.apache.org/solr/FunctionQuery#Date_Boosting

Specifcally : recip(ms(NOW/HOUR,mydatefield),3.16e-11,1,1).

I am using dismax, and I am very unsure on where to put this or call the 
function... for example in the fq= param??, in the q= param?


Sample query :
http://localhost:8983/solr/dismax/?q="george 
clooney"&mm=48%25&debugQuery=off&indent=on&start=&rows=10

If I want to factor in score/date (called creationdate)...

recip(ms(NOW/HOUR,creationdate),3.16e-11,1,1).

Help! and thanks so much for any examples or help..
-Craig