Re: Solr Dismax bf bq vs. q:{boost ...}

2011-05-31 Thread Erick Erickson
First, please define what wrong results means, what are you expecting
and what are you seeing?

Second, please post the results of debugQuery=on where we can all
see it, perhaps something will pop out...

Best
Erick

On Mon, May 30, 2011 at 12:27 PM, chazzuka chazz...@gmail.com wrote:
 I tried to do this:

 #1. search phrases in title^3  text^1
 #2. based on result #1 add boost for field closed:0^2
 #3. based on result in #2 boost based on last_modified

 and i tried like these:

 /solr/select
 ?q={!boost b=$dateboost v=$qq defType=dismax}
 dateboost=recip(ms(NOW/HOUR,modified),8640,2,1)
 qq=video
 qf=title^3+text
 pf=title^3+text
 bq=closed:0^2
 debugQuery=true

 then i tried differently by changing solrconfig like these:

 str name=qftitle^3 text/str
 str name=pftitle^3 text/str
 str name=bfrecip(ms(NOW/HOUR,modified),8640,2,1)/str
 str name=bqclosed:0^2/str

 with query:
 /solr/select
 ?q=video
 debugQuery=true

 both seems give wrong results, anyone have an idea about doing those tasks?

 thanks in advanced



 --
 View this message in context: 
 http://lucene.472066.n3.nabble.com/Solr-Dismax-bf-bq-vs-q-boost-tp3003028p3003028.html
 Sent from the Solr - User mailing list archive at Nabble.com.



Solr Dismax bf bq vs. q:{boost ...}

2011-05-30 Thread chazzuka
I tried to do this:

#1. search phrases in title^3  text^1
#2. based on result #1 add boost for field closed:0^2
#3. based on result in #2 boost based on last_modified
 
and i tried like these:

/solr/select
?q={!boost b=$dateboost v=$qq defType=dismax}
dateboost=recip(ms(NOW/HOUR,modified),8640,2,1)
qq=video
qf=title^3+text
pf=title^3+text
bq=closed:0^2
debugQuery=true

then i tried differently by changing solrconfig like these:

str name=qftitle^3 text/str
str name=pftitle^3 text/str
str name=bfrecip(ms(NOW/HOUR,modified),8640,2,1)/str
str name=bqclosed:0^2/str

with query:
/solr/select
?q=video
debugQuery=true

both seems give wrong results, anyone have an idea about doing those tasks?

thanks in advanced



--
View this message in context: 
http://lucene.472066.n3.nabble.com/Solr-Dismax-bf-bq-vs-q-boost-tp3003028p3003028.html
Sent from the Solr - User mailing list archive at Nabble.com.