Hi, 

This solr query faile:
1. get every title regardless what the title_name is
2. within the result, boost the one which genre id = 56.  (bq=genres:56^100)

http://localhost:8983/solr/titles/select?indent=on&version=2.2&start=0&rows=10&fl=*%2Cscore&wt=standard&defType=dismax&qf=title_name_en_US&q=*%3A*&bq=genres%3A56^100&debugQuery=on


But from debug i can tell it confuse the boost query parameter as part of
query string:

lst name="debug">
str name="rawquerystring">*:*
str name="querystring">*:*
str name="parsedquery">+() () genres:56^100.0
str name="parsedquery_toString">+() () genres:56^100.0
lst name="explain"/>
str name="QParser">DisMaxQParser
null name="altquerystring"/>
−
arr name="boost_queries">
str>genres:56^100
/arr>
−

genres:56^100.0




Just to note that genres field is a multivalue field.  I don't know if
boosting query has any requirement on single value/token.

But i also tried with another single value query field for bq, similar
problem:

http://localhost:8983/solr/titles/select?indent=on&version=2.2&q=*%3A*&fq=&start=0&rows=10&fl=*%2Cscore&wt=standard&explainOther=&hl.fl=&defType=dismax&qf=title_name_en_US&bq=year[2000
TO *]^2.2&debugQuery=on


Thanks for you help,

cy


--
View this message in context: 
http://lucene.472066.n3.nabble.com/Why-boost-query-not-working-tp2723304p2723304.html
Sent from the Solr - User mailing list archive at Nabble.com.

Reply via email to