lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alexei Martchenko <ale...@superdownloads.com.br>
Subject Re: Question on functions
Date Thu, 01 Sep 2011 19:45:07 GMT
We put here

<requestHandler name="whatever" class="solr.StandardRequestHandler"
default="true">
<lst name="defaults">
<str name="defType">dismax</str>
<str name="qf">...</str>
<str name="pf">...</str>
<str name="bf">recip(ms(NOW,sear_dataupdate),3.16e-11,1,1)</str>
...


2011/9/1 Craig Stadler <cstadler18@hotmail.com>

> Regarding :
> http://wiki.apache.org/solr/**FunctionQuery#Date_Boosting<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=<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
alexei@superdownloads.com.br | alexei@martchenko.com.br | (11)
5083.1018/5080.3535/5080.3533

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message