You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Gastone Penzo <ga...@gmail.com> on 2011/03/02 17:34:34 UTC
Boost function problem with disquerymax
HI,
for search i use disquery max
and a i want to boost a field with bf parameter like:
...&bf=boost_has_img^5&....
the boost_has_img field of my document is 3:
<int name="boost_has_img">3</int>
if i see the results in debug query mode i can see:
0.0 = (MATCH) FunctionQuery(int(boost_has_img)), product of:
0.0 = int(boost_has_img)=0
5.0 = boost
0.06543833 = queryNorm
why the score is 0 if the value is 3 and the boost is 5???
THANX
--
Gastone Penzo
Re: Boost function problem with disquerymax
Posted by Gastone Penzo <ga...@gmail.com>.
You are right. it was not and index field. just stored
Thanx
2011/3/2 Yonik Seeley <yo...@lucidimagination.com>
> On Wed, Mar 2, 2011 at 11:34 AM, Gastone Penzo <ga...@gmail.com>
> wrote:
> > HI,
> > for search i use disquery max
> > and a i want to boost a field with bf parameter like:
> > ...&bf=boost_has_img^5&....
> > the boost_has_img field of my document is 3:
> > <int name="boost_has_img">3</int>
> > if i see the results in debug query mode i can see:
> > 0.0 = (MATCH) FunctionQuery(int(boost_has_img)), product of:
> > 0.0 = int(boost_has_img)=0
> > 5.0 = boost
> > 0.06543833 = queryNorm
> > why the score is 0 if the value is 3 and the boost is 5???
>
> Solr thinks the value of boost_has_img is 0 for that document.
> Is boost_has_img an indexed field?
> If so, verify that the value is actually 3 for that specific document.
>
>
> -Yonik
> http://lucidimagination.com
>
--
Gastone Penzo
Webster Srl
www.webster.it
www.libreriauniversitaria.it
Re: Boost function problem with disquerymax
Posted by Gastone Penzo <ga...@gmail.com>.
You are right. it was not and index field. just stored
Thanx
2011/3/2 Yonik Seeley <yo...@lucidimagination.com>
> On Wed, Mar 2, 2011 at 11:34 AM, Gastone Penzo <ga...@gmail.com>
> wrote:
> > HI,
> > for search i use disquery max
> > and a i want to boost a field with bf parameter like:
> > ...&bf=boost_has_img^5&....
> > the boost_has_img field of my document is 3:
> > <int name="boost_has_img">3</int>
> > if i see the results in debug query mode i can see:
> > 0.0 = (MATCH) FunctionQuery(int(boost_has_img)), product of:
> > 0.0 = int(boost_has_img)=0
> > 5.0 = boost
> > 0.06543833 = queryNorm
> > why the score is 0 if the value is 3 and the boost is 5???
>
> Solr thinks the value of boost_has_img is 0 for that document.
> Is boost_has_img an indexed field?
> If so, verify that the value is actually 3 for that specific document.
>
>
> -Yonik
> http://lucidimagination.com
>
--
Gastone Penzo
Webster Srl
www.webster.it
www.libreriauniversitaria.it
Re: Boost function problem with disquerymax
Posted by Yonik Seeley <yo...@lucidimagination.com>.
On Wed, Mar 2, 2011 at 11:34 AM, Gastone Penzo <ga...@gmail.com> wrote:
> HI,
> for search i use disquery max
> and a i want to boost a field with bf parameter like:
> ...&bf=boost_has_img^5&....
> the boost_has_img field of my document is 3:
> <int name="boost_has_img">3</int>
> if i see the results in debug query mode i can see:
> 0.0 = (MATCH) FunctionQuery(int(boost_has_img)), product of:
> 0.0 = int(boost_has_img)=0
> 5.0 = boost
> 0.06543833 = queryNorm
> why the score is 0 if the value is 3 and the boost is 5???
Solr thinks the value of boost_has_img is 0 for that document.
Is boost_has_img an indexed field?
If so, verify that the value is actually 3 for that specific document.
-Yonik
http://lucidimagination.com
Re: Boost function problem with disquerymax
Posted by Yonik Seeley <yo...@lucidimagination.com>.
On Wed, Mar 2, 2011 at 11:34 AM, Gastone Penzo <ga...@gmail.com> wrote:
> HI,
> for search i use disquery max
> and a i want to boost a field with bf parameter like:
> ...&bf=boost_has_img^5&....
> the boost_has_img field of my document is 3:
> <int name="boost_has_img">3</int>
> if i see the results in debug query mode i can see:
> 0.0 = (MATCH) FunctionQuery(int(boost_has_img)), product of:
> 0.0 = int(boost_has_img)=0
> 5.0 = boost
> 0.06543833 = queryNorm
> why the score is 0 if the value is 3 and the boost is 5???
Solr thinks the value of boost_has_img is 0 for that document.
Is boost_has_img an indexed field?
If so, verify that the value is actually 3 for that specific document.
-Yonik
http://lucidimagination.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org