Hi Eric,

Thanks many for your mail!
Please find attached the debugQuery results.

Thanks!
Mark

On Mon, Apr 5, 2010 at 7:38 PM, Erick Erickson <erickerick...@gmail.com>wrote:

> What do you get back when you specify &debugQuery=on?
>
> Best
> Erick
>
> On Mon, Apr 5, 2010 at 7:31 PM, Mark Fletcher
> <mark.fletcher2...@gmail.com>wrote:
>
>  > Hi,
> >
> > I am using the dismax handler.
> > I have a field named *myfield* which has a value say XXX.YYY.ZZZ. I have
> > boosted myfield^20.0.
> > Even with such a high boost (in fact among the qf fields specified this
> > field has the max boost given), when I search for XXX.YYY.ZZZ I see my
> > record as the second one in the results and a record of  the form
> > XXX.YYY.ZZZ.AAA.BBB is appearing as the first one.
> >
> > Can any one help me understand why is this so, as I thought an exact
> match
> > on a heavily boosted field would give the exact match record first in
> > dismax.
> >
> > Thanks and Rgds,
> > Mark
> >
>
A personal note:-
I have boosted the id field to the highest among my qf values specified in my 
dismax. 
Even then when I search for an id say XX.YYY.ZZZ, instead of pushing the record 
with id=XX.YYY.ZZZ to the first place, it is displaying another record 
XX.YYY.ZZZ.ME.PK as the first one...There are total 4 results but I have 
included details of only the first and second. Am surprised why XX.YY.ZZZ 
doesn't come as the first record even after an exact match found in it.

My qf fields in dismax:-
 <str name="qf">
        name^10.0 id^20.0 subtopic1^1.0 indicator_value^1.0 country_name^1.0 
country_code^1.0 source^0.8 database^1.4 definition^1.2 dr_report_name^1.0 
dr_header^1.0 dr_footer^1.0 dr_mdx_query^1.0 dr_reportmetadata^1.0 content^1.0 
aag_indicators^1.0 type^1.0 text^.3
     </str>
    <str name="pf">
        id^6.0
     </str>
     <str name="bq">
        type:Timeseries^1000.0
     </str>

Debug Report:-

<lst name="debug">
 <str name="rawquerystring">xx.yyy.zzzz</str>
 <str name="querystring">xx.yyy.zzzz</str>
 <str name="parsedquery">+DisjunctionMaxQuery((text:"(xx.yyy.zzz xx) yyy 
zzzz"^0.3 | definition:"(xx.yyy.zzz xx) yyy zzzz"^0.2 | 
indicator_value:"(xx.yyy.zzz xx) yyy zzzz" | subtopic1:"(xx.yyy.zzz xx) yyy 
zzzz" | dr_report_name:"(xx.yyy.zzz xx) yyy zzzz" | 
dr_reportmetadata:"(xx.yyy.zzz xx) yyy zzzz" | dr_footer:"(xx.yyy.zzz xx) yyy 
zzzz" | type:"(xx.yyy.zzz xx) yyy zzzz" | country_code:"(xx.yyy.zzz xx) yyy 
zzzz"^2.0 | country_name:"(xx.yyy.zzz xx) yyy zzzz"^2.0 | database:"(xx.yyy.zzz 
xx) yyy zzzz"^1.4 | aag_indicators:"(xx.yyy.zzz xx) yyy zzzz" | 
content:"(xx.yyy.zzz xx) yyy zzzz" | id:xx.yyy.zzzz^1000.0 | 
dr_mdx_query:"(xx.yyy.zzz xx) yyy zzzz" | source:"(xx.yyy.zzz xx) yyy zzzz"^0.2 
| name:"(xx.yyy.zzz xx) yyy zzzz"^10.0 | dr_header:"(xx.yyy.zzz xx) yyy 
zzzz")~0.01) DisjunctionMaxQuery((id:xx.yyy.zzzz^6.0)~0.01) 
type:timeseries^1000.0</str>
 <str name="parsedquery_toString">+(text:"(xx.yyy.zzz xx) yyy zzzz"^0.3 | 
definition:"(xx.yyy.zzz xx) yyy zzzz"^0.2 | indicator_value:"(xx.yyy.zzz xx) 
yyy zzzz" | subtopic1:"(xx.yyy.zzz xx) yyy zzzz" | dr_report_name:"(xx.yyy.zzz 
xx) yyy zzzz" | dr_reportmetadata:"(xx.yyy.zzz xx) yyy zzzz" | 
dr_footer:"(xx.yyy.zzz xx) yyy zzzz" | type:"(xx.yyy.zzz xx) yyy zzzz" | 
country_code:"(xx.yyy.zzz xx) yyy zzzz"^2.0 | country_name:"(xx.yyy.zzz xx) yyy 
zzzz"^2.0 | database:"(xx.yyy.zzz xx) yyy zzzz"^1.4 | 
aag_indicators:"(xx.yyy.zzz xx) yyy zzzz" | content:"(xx.yyy.zzz xx) yyy zzzz" 
| id:xx.yyy.zzzz^1000.0 | dr_mdx_query:"(xx.yyy.zzz xx) yyy zzzz" | 
source:"(xx.yyy.zzz xx) yyy zzzz"^0.2 | name:"(xx.yyy.zzz xx) yyy zzzz"^10.0 | 
dr_header:"(xx.yyy.zzz xx) yyy zzzz")~0.01 (id:xx.yyy.zzzz^6.0)~0.01 
type:timeseries^1000.0</str>
 <lst name="explain">
<str name="XX.YYY.ZZZZ.ME.PK">
0.15786289 = (MATCH) sum of:
  6.086512E-4 = (MATCH) max plus 0.01 times others of:
    6.086512E-4 = (MATCH) weight(text:"(xx.yyy.zzzz sp) yyy zzzz"^0.3 in 1004), 
product of:
      7.562088E-4 = queryWeight(text:"(xx.yyy.zzzz xx) yyy zzzz"^0.3), product 
of:
        0.3 = boost
        20.604721 = idf(text:"(xx.yyy.zzzz xx) yyy zzzz"^0.3)
        1.2233584E-4 = queryNorm
      0.8048719 = (MATCH) fieldWeight(text:"(xx.yyy.zzzz xx) yyy zzzz"^0.3 in 
1004), product of:
        1.0 = tf(phraseFreq=1.0)
        20.604721 = idf(text:"(xx.yyy.zzzz xx) yyy zzzz"^0.3)
        0.0390625 = fieldNorm(field=text, doc=1004)
  0.15725423 = (MATCH) weight(type:timeseries^1000.0 in 1004), product of:
    0.1387005 = queryWeight(type:timeseries^1000.0), product of:
      1000.0 = boost
      1.1337683 = idf(docFreq=1054, maxDocs=1206)
      1.2233584E-4 = queryNorm
    1.1337683 = (MATCH) fieldWeight(type:timeseries in 1004), product of:
      1.0 = tf(termFreq(type:timeseries)=1)
      1.1337683 = idf(docFreq=1054, maxDocs=1206)
      1.0 = fieldNorm(field=type, doc=1004)
</str>
  <str name="XX.YYY.ZZZZ">
0.15774116 = (MATCH) sum of:
  4.8692097E-4 = (MATCH) max plus 0.01 times others of:
    4.8692097E-4 = (MATCH) weight(text:"(xx.yyy.zzzz xx) yyy zzzz"^0.3 in 
1003), product of:
      7.562088E-4 = queryWeight(text:"(xx.yyy.zzzz xx) yyy zzzz"^0.3), product 
of:
        0.3 = boost
        20.604721 = idf(text:"(xx.yyy.zzz xx) yyy zzzz"^0.3)
        1.2233584E-4 = queryNorm
      0.64389753 = (MATCH) fieldWeight(text:"(xx.yyy.zzzz xx) yyy zzzz"^0.3 in 
1003), product of:
        1.0 = tf(phraseFreq=1.0)
        20.604721 = idf(text:"(xx.yyy.zzzz xx) yyy zzzz"^0.3)
        0.03125 = fieldNorm(field=text, doc=1003)
  0.15725423 = (MATCH) weight(type:timeseries^1000.0 in 1003), product of:
    0.1387005 = queryWeight(type:timeseries^1000.0), product of:
      1000.0 = boost
      1.1337683 = idf(docFreq=1054, maxDocs=1206)
      1.2233584E-4 = queryNorm
    1.1337683 = (MATCH) fieldWeight(type:timeseries in 1003), product of:
      1.0 = tf(termFreq(type:timeseries)=1)
      1.1337683 = idf(docFreq=1054, maxDocs=1206)
      1.0 = fieldNorm(field=type, doc=1003)
</str>

Reply via email to