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 sunnyfr <jo...@gmail.com> on 2008/12/10 15:58:50 UTC

Look for three words, just two are weighted ?

Hi,

I dont get really ... when I look for three words and I'm sure there is one
cartoontv which should be find  in a owner_login. How com it doesn"t boost
it and even don't weight this field ?

Second question, if I want to weight status_official:true^2 should I do it
this way ??? for weighting the true one? thanks

/select?fl=*&qt=dismax&q=+tom+jerry+cartoontv&qf=status_official^2.5+owner_login^10+title^3&debugQuery=true

Thanks a lot 

<str name="parsedquery">
+((DisjunctionMaxQuery((owner_login:tom^10.0 | title:tom^3.0 |
status_official:T^2.5)~0.01) DisjunctionMaxQuery((owner_login:jerry^10.0 |
title:jerri^3.0 | status_official:F^2.5)~0.01)
DisjunctionMaxQuery((owner_login:cartoontv^10.0 | title:cartoontv^3.0 |
status_official:F^2.5)~0.01))~2) DisjunctionMaxQuery((text:"tom jerri
cartoontv"~100^0.2)~0.01)
</str>
−
<str name="parsedquery_toString">
+(((owner_login:tom^10.0 | title:tom^3.0 | status_official:T^2.5)~0.01
(owner_login:jerry^10.0 | title:jerri^3.0 | status_official:F^2.5)~0.01
(owner_login:cartoontv^10.0 | title:cartoontv^3.0 |
status_official:F^2.5)~0.01)~2) (text:"tom jerri cartoontv"~100^0.2)~0.01
</str>
−
<lst name="explain">
−
<str name="559170">

0.93018544 = (MATCH) sum of:
  0.93018544 = (MATCH) sum of:
    0.38833502 = (MATCH) max plus 0.01 times others of:
      0.38833502 = (MATCH) weight(title:tom^3.0 in 918085), product of:
        0.07993768 = queryWeight(title:tom^3.0), product of:
          3.0 = boost
          7.7727556 = idf(docFreq=8645, numDocs=7554152)
          0.003428114 = queryNorm
        4.857972 = (MATCH) fieldWeight(title:tom in 918085), product of:
          1.0 = tf(termFreq(title:tom)=1)
          7.7727556 = idf(docFreq=8645, numDocs=7554152)
          0.625 = fieldNorm(field=title, doc=918085)
    0.5330824 = (MATCH) max plus 0.01 times others of:
      0.53299475 = (MATCH) weight(title:jerri^3.0 in 918085), product of:
        0.093650416 = queryWeight(title:jerri^3.0), product of:
          3.0 = boost
          9.106116 = idf(docFreq=2278, numDocs=7554152)
          0.003428114 = queryNorm
        5.691323 = (MATCH) fieldWeight(title:jerri in 918085), product of:
          1.0 = tf(termFreq(title:jerri)=1)
          9.106116 = idf(docFreq=2278, numDocs=7554152)
          0.625 = fieldNorm(field=title, doc=918085)
      0.008767964 = (MATCH) weight(status_official:F^2.5 in 918085), product
of:
        0.0086685615 = queryWeight(status_official:F^2.5), product of:
          2.5 = boost
          1.0114671 = idf(docFreq=7468022, numDocs=7554152)
          0.003428114 = queryNorm
        1.0114671 = (MATCH) fieldWeight(status_official:F in 918085),
product of:
          1.0 = tf(termFreq(status_official:F)=1)
          1.0114671 = idf(docFreq=7468022, numDocs=7554152)
          1.0 = fieldNorm(field=status_official, doc=918085)
    0.008767964 = (MATCH) max plus 0.01 times others of:
      0.008767964 = (MATCH) weight(status_official:F^2.5 in 918085), product
of:
        0.0086685615 = queryWeight(status_official:F^2.5), product of:
          2.5 = boost
          1.0114671 = idf(docFreq=7468022, numDocs=7554152)
          0.003428114 = queryNorm
        1.0114671 = (MATCH) fieldWeight(status_official:F in 918085),
product of:
          1.0 = tf(termFreq(status_official:F)=1)
          1.0114671 = idf(docFreq=7468022, numDocs=7554152)
          1.0 = fieldNorm(field=status_official, doc=918085)

-- 
View this message in context: http://www.nabble.com/Look-for-three-words%2C-just-two-are-weighted---tp20936945p20936945.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Look for three words, just two are weighted ?

Posted by sunnyfr <jo...@gmail.com>.
Yes but when I check the debug, there is no weight about it ??? 
/select?fl=*&qt=dismax&q=+tom+jerry+cartoontv&bq=status_official:true^12&qf=owner_login^10+title^3&debugQuery=true

and its like if it doesn"t weight as well my word cartoontv ?? ok maybe the
doc which contain this three word is not enough weighted ? 

<str name="rawquerystring"> tom jerry cartoontv</str>
<str name="querystring"> tom jerry cartoontv</str>
−
<str name="parsedquery">
+((DisjunctionMaxQuery((owner_login:tom^10.0 | title:tom^3.0)~0.01)
DisjunctionMaxQuery((owner_login:jerry^10.0 | title:jerri^3.0)~0.01)
DisjunctionMaxQuery((owner_login:cartoontv^10.0 |
title:cartoontv^3.0)~0.01))~2) DisjunctionMaxQuery((text:"tom jerri
cartoontv"~100^0.2)~0.01) status_official:true^12.0
</str>
−
<str name="parsedquery_toString">
+(((owner_login:tom^10.0 | title:tom^3.0)~0.01 (owner_login:jerry^10.0 |
title:jerri^3.0)~0.01 (owner_login:cartoontv^10.0 |
title:cartoontv^3.0)~0.01)~2) (text:"tom jerri cartoontv"~100^0.2)~0.01
status_official:T^12.0
</str>
−
<lst name="explain">
−
<str name="559170">

0.59949005 = (MATCH) sum of:
  0.59949005 = (MATCH) product of:
    0.899235 = (MATCH) sum of:
      0.37824848 = (MATCH) max plus 0.01 times others of:
        0.37824848 = (MATCH) weight(title:tom^3.0 in 918085), product of:
          0.077876315 = queryWeight(title:tom^3.0), product of:
            3.0 = boost
            7.771266 = idf(docFreq=8887, numDocs=7753783)
            0.003340353 = queryNorm
          4.8570414 = (MATCH) fieldWeight(title:tom in 918085), product of:
            1.0 = tf(termFreq(title:tom)=1)
            7.771266 = idf(docFreq=8887, numDocs=7753783)
            0.625 = fieldNorm(field=title, doc=918085)
      0.52098656 = (MATCH) max plus 0.01 times others of:
        0.52098656 = (MATCH) weight(title:jerri^3.0 in 918085), product of:
          0.09139661 = queryWeight(title:jerri^3.0), product of:
            3.0 = boost
            9.120454 = idf(docFreq=2305, numDocs=7753783)
            0.003340353 = queryNorm
          5.7002835 = (MATCH) fieldWeight(title:jerri in 918085), product
of:
            1.0 = tf(termFreq(title:jerri)=1)
            9.120454 = idf(docFreq=2305, numDocs=7753783)
            0.625 = fieldNorm(field=title, doc=918085)
    0.6666667 = coord(2/3)
</str>
−



Erik Hatcher wrote:
> 
> 
> On Dec 10, 2008, at 9:58 AM, sunnyfr wrote:
>> Second question, if I want to weight status_official:true^2 should I  
>> do it
>> this way ??? for weighting the true one? thanks
>>
>> /select?fl=*&qt=dismax&q=+tom+jerry 
>> + 
>> cartoontv 
>> &qf=status_official^2.5+owner_login^10+title^3&debugQuery=true
> 
> Use bq (boosting query) for boosting by status....  
> bq=status_official:true^2 and remove it from the qf parameter.  That  
> should do the trick.
> 
> 	Erik
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Look-for-three-words%2C-just-two-are-weighted---tp20936945p20937676.html
Sent from the Solr - User mailing list archive at Nabble.com.


Re: Look for three words, just two are weighted ?

Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On Dec 10, 2008, at 9:58 AM, sunnyfr wrote:
> Second question, if I want to weight status_official:true^2 should I  
> do it
> this way ??? for weighting the true one? thanks
>
> /select?fl=*&qt=dismax&q=+tom+jerry 
> + 
> cartoontv 
> &qf=status_official^2.5+owner_login^10+title^3&debugQuery=true

Use bq (boosting query) for boosting by status....  
bq=status_official:true^2 and remove it from the qf parameter.  That  
should do the trick.

	Erik