Hi, I am trying to test relevancy of results with the q.alt field on a Dismax Request Handler. Term level boosting based on bq information in solrconfig.xml works fine. However field level boosting based on the qf information in solrconfig.xml doesn't seem to work.
Query q=&q.alt=for&rows=1000&qt=dismaxrequest Results <?xml version="1.0" encoding="UTF-8" ?> - <response> - <lst name="responseHeader"> <int name="status">0</int> <int name="QTime">0</int> - <lst name="params"> <str name="rows">1000</str> <str name="q.alt">for</str> <str name="q" /> <str name="qt">dismaxrequest</str> </lst> </lst> - <result name="response" numFound="6" start="0" maxScore="5.244862E-8"> - <doc> <float name="score">5.244862E-8</float> <str name="IndexId_s">product_711069667</str> <str name="IndexId_str_s">product_711069667</str> <str name="Index_Type_s">productIndex</str> <str name="Index_Type_str_s">productIndex</str> <str name="isbn10_product_s">0425172651</str> <str name="isbn10_product_str_s">0425172651</str> <str name="isbn13_product_s">9780425172650</str> <str name="isbn13_product_str_s">9780425172650</str> <str name="prdMainSubTitle_product_s">The Natural Solution for Pain</str> <str name="prdMainSubTitle_product_str_s">The Natural Solution for Pain</str> <str name="prdMainTitle_product_s">Miracle of MSM</str> <str name="prdMainTitle_product_str_s">Miracle of MSM</str> <str name="productId_product_s">711069667</str> <str name="productId_product_str_s">711069667</str> <str name="productPrice_product_s">0</str> <str name="productPrice_product_str_s">0</str> <str name="websiteId_product_s">510000728</str> <str name="websiteId_product_str_s">510000728</str> </doc> - <doc> <float name="score">4.495596E-8</float> <str name="IndexId_s">product_711069593</str> <str name="IndexId_str_s">product_711069593</str> <str name="Index_Type_s">productIndex</str> <str name="Index_Type_str_s">productIndex</str> <str name="isbn10_product_s">0140265139</str> <str name="isbn10_product_str_s">0140265139</str> <str name="isbn13_product_s">9780140265132</str> <str name="isbn13_product_str_s">9780140265132</str> <str name="prdMainSubTitle_product_s">The Search for the Great White Shark</str> <str name="prdMainSubTitle_product_str_s">The Search for the Great White Shark</str> <str name="prdMainTitle_product_s">Blue Meridian</str> <str name="prdMainTitle_product_str_s">Blue Meridian</str> <str name="productId_product_s">711069593</str> <str name="productId_product_str_s">711069593</str> <str name="productPrice_product_s">0</str> <str name="productPrice_product_str_s">0</str> <str name="websiteId_product_s">510000728</str> <str name="websiteId_product_str_s">510000728</str> </doc> - <doc> <float name="score">4.495596E-8</float> <str name="IndexId_s">product_711069848</str> <str name="IndexId_str_s">product_711069848</str> <str name="Index_Type_s">productIndex</str> <str name="Index_Type_str_s">productIndex</str> <str name="isbn10_product_s">0721472869</str> <str name="isbn10_product_str_s">0721472869</str> <str name="isbn13_product_s">9780721472867</str> <str name="isbn13_product_str_s">9780721472867</str> <str name="prdMainTitle_product_s">Dinosaur Stories for 5-year-olds</str> <str name="prdMainTitle_product_str_s">Dinosaur Stories for 5-year-olds</str> <str name="prdPubDate_product_s">25-MAR-99</str> <str name="prdPubDate_product_str_s">25-MAR-99</str> <str name="productId_product_s">711069848</str> <str name="productId_product_str_s">711069848</str> <str name="productPrice_product_s">3.69</str> <str name="productPrice_product_str_s">3.69</str> <str name="websiteId_product_s">510000728</str> <str name="websiteId_product_str_s">510000728</str> </doc> - <doc> <float name="score">4.495596E-8</float> <str name="IndexId_s">product_711069902</str> <str name="IndexId_str_s">product_711069902</str> <str name="Index_Type_s">productIndex</str> <str name="Index_Type_str_s">productIndex</str> <str name="isbn10_product_s">0751362476</str> <str name="isbn10_product_str_s">0751362476</str> <str name="isbn13_product_s">9780751362473</str> <str name="isbn13_product_str_s">9780751362473</str> <str name="prdMainTitle_product_s">Touch & Feel: ABC</str> <str name="prdMainTitle_product_str_s">Touch & Feel: ABC</str> <str name="prdPubDate_product_s">03-FEB-00</str> <str name="prdPubDate_product_str_s">03-FEB-00</str> <str name="productId_product_s">711069902</str> <str name="productId_product_str_s">711069902</str> <str name="productPrice_product_s">4.99</str> <str name="productPrice_product_str_s">4.99</str> <str name="strapline_product_s">Photographic tactile experience for young learners</str> <str name="strapline_product_str_s">Photographic tactile experience for young learners</str> <str name="websiteId_product_s">510000728</str> <str name="websiteId_product_str_s">510000728</str> </doc> - <doc> <float name="score">3.74633E-8</float> <str name="IndexId_s">product_711069724</str> <str name="IndexId_str_s">product_711069724</str> <str name="Index_Type_s">productIndex</str> <str name="Index_Type_str_s">productIndex</str> <str name="isbn10_product_s">0135206510</str> <str name="isbn10_product_str_s">0135206510</str> <str name="isbn13_product_s">9780135206515</str> <str name="isbn13_product_str_s">9780135206515</str> <str name="prdMainSubTitle_product_s">Hundreds of Sure-fire Techniques for Getting Your Way with People at Work</str> <str name="prdMainSubTitle_product_str_s">Hundreds of Sure-fire Techniques for Getting Your Way with People at Work</str> <str name="prdMainTitle_product_s">Art and Skill of Dealilng with People</str> <str name="prdMainTitle_product_str_s">Art and Skill of Dealilng with People</str> <str name="productId_product_s">711069724</str> <str name="productId_product_str_s">711069724</str> <str name="productPrice_product_s">0</str> <str name="productPrice_product_str_s">0</str> <str name="websiteId_product_s">510000728</str> <str name="websiteId_product_str_s">510000728</str> </doc> - <doc> <float name="score">3.74633E-8</float> <str name="IndexId_s">product_711069908</str> <str name="IndexId_str_s">product_711069908</str> <str name="Index_Type_s">productIndex</str> <str name="Index_Type_str_s">productIndex</str> <str name="isbn10_product_s">0751311456</str> <str name="isbn10_product_str_s">0751311456</str> <str name="isbn13_product_s">9780751311457</str> <str name="isbn13_product_str_s">9780751311457</str> <str name="prdMainTitle_product_s">Hebrew Phrase Book & Cassette</str> <str name="prdMainTitle_product_str_s">Hebrew Phrase Book & Cassette</str> <str name="prdPubDate_product_s">02-NOV-00</str> <str name="prdPubDate_product_str_s">02-NOV-00</str> <str name="productId_product_s">711069908</str> <str name="productId_product_str_s">711069908</str> <str name="productPrice_product_s">5.99</str> <str name="productPrice_product_str_s">5.99</str> <str name="strapline_product_s">The essential words and phrases for every traveller</str> <str name="strapline_product_str_s">The essential words and phrases for every traveller</str> <str name="websiteId_product_s">510000728</str> <str name="websiteId_product_str_s">510000728</str> </doc> </result> </response> This is contradictory to the fact that I have applied a higher boost to strapline_product_s (10000) as compared to prdMainSubTitle_product_s (100) in the dismax configuration; which is given below. Dismax Configuration <requestHandler name="dismaxrequest" class="solr.DisMaxRequestHandler" > <lst name="defaults"> <!-- omp = Only More Popular --> <str name="spellcheck.onlyMorePopular">false</str> <!-- exr = Extended Results --> <str name="spellcheck.extendedResults">false</str> <!-- The number of suggestions to return --> <str name="spellcheck.count">10</str> <str name="echoParams">explicit</str> <float name="tie">0.01</float> <str name="qf">strapline_product_s^10000.0 prdMainSubTitle_product_s^100.0 isbn10_product_s^1.0 isbn13_product_s^1.0 Index_Type_s^1.0 prdMainTitle_product_s^1.0 categoryIds_product_s^1.0 imprint_product_s^1.0 subject_product_s^1.0 prdPubDate_product_s^1.0 readBy_product_s^1.0 aluminator_product_s^1.0 editor_product_s^1.0 productType_product_s^1.0 authorLastName_product_s^1.0 edition_product_s^1.0 discipline_product_s^1.0 copyrightYear_product_s^1.0 courseId_course_s^1.0 indexType_course_s^1.0 courseType_course_s^1.0 courseJacketImage_course_s^1.0 sourceGroupName_course_s^1.0 subCompany_course_s^1.0 courseCodeSeq_course_s^1.0 discCode_course_s^1.0 displayName_course_s^1.0 programId_program_s^1.0 indexType_program_s^1.0 programType_program_s^1.0 groupNm_program_s^1.0 introText_program_s^1.0 programJacketImage_program_s^1.0</str> <str name="pf"> </str> <str name="bf"> </str> <str name="bq">Manual^10000 Machine^100 english^90 hindi^123 Glorious^2000 highlighting^10000000 maths^100 ab^12 erer^4545 </str> <str name="fl"> *,score </str> </lst> <arr name="last-components"> <str>spellcheck</str> </arr> </requestHandler> The same thing works as expected when "for" is used in the q field - Query q=for&rows=1000&qt=dismaxrequest& Results <?xml version="1.0" encoding="UTF-8" ?> - <response> - <lst name="responseHeader"> <int name="status">0</int> <int name="QTime">31</int> - <lst name="params"> <str name="rows">1000</str> <str name="q">for</str> <str name="qt">dismaxrequest</str> </lst> </lst> - <result name="response" numFound="6" start="0" maxScore="0.0013623147"> - <doc> <float name="score">0.0013623147</float> <str name="IndexId_s">product_711069902</str> <str name="IndexId_str_s">product_711069902</str> <str name="Index_Type_s">productIndex</str> <str name="Index_Type_str_s">productIndex</str> <str name="isbn10_product_s">0751362476</str> <str name="isbn10_product_str_s">0751362476</str> <str name="isbn13_product_s">9780751362473</str> <str name="isbn13_product_str_s">9780751362473</str> <str name="prdMainTitle_product_s">Touch & Feel: ABC</str> <str name="prdMainTitle_product_str_s">Touch & Feel: ABC</str> <str name="prdPubDate_product_s">03-FEB-00</str> <str name="prdPubDate_product_str_s">03-FEB-00</str> <str name="productId_product_s">711069902</str> <str name="productId_product_str_s">711069902</str> <str name="productPrice_product_s">4.99</str> <str name="productPrice_product_str_s">4.99</str> <str name="strapline_product_s">Photographic tactile experience for young learners</str> <str name="strapline_product_str_s">Photographic tactile experience for young learners</str> <str name="websiteId_product_s">510000728</str> <str name="websiteId_product_str_s">510000728</str> </doc> - <doc> <float name="score">0.0011352622</float> <str name="IndexId_s">product_711069908</str> <str name="IndexId_str_s">product_711069908</str> <str name="Index_Type_s">productIndex</str> <str name="Index_Type_str_s">productIndex</str> <str name="isbn10_product_s">0751311456</str> <str name="isbn10_product_str_s">0751311456</str> <str name="isbn13_product_s">9780751311457</str> <str name="isbn13_product_str_s">9780751311457</str> <str name="prdMainTitle_product_s">Hebrew Phrase Book & Cassette</str> <str name="prdMainTitle_product_str_s">Hebrew Phrase Book & Cassette</str> <str name="prdPubDate_product_s">02-NOV-00</str> <str name="prdPubDate_product_str_s">02-NOV-00</str> <str name="productId_product_s">711069908</str> <str name="productId_product_str_s">711069908</str> <str name="productPrice_product_s">5.99</str> <str name="productPrice_product_str_s">5.99</str> <str name="strapline_product_s">The essential words and phrases for every traveller</str> <str name="strapline_product_str_s">The essential words and phrases for every traveller</str> <str name="websiteId_product_s">510000728</str> <str name="websiteId_product_str_s">510000728</str> </doc> - <doc> <float name="score">1.3933439E-5</float> <str name="IndexId_s">product_711069667</str> <str name="IndexId_str_s">product_711069667</str> <str name="Index_Type_s">productIndex</str> <str name="Index_Type_str_s">productIndex</str> <str name="isbn10_product_s">0425172651</str> <str name="isbn10_product_str_s">0425172651</str> <str name="isbn13_product_s">9780425172650</str> <str name="isbn13_product_str_s">9780425172650</str> <str name="prdMainSubTitle_product_s">The Natural Solution for Pain</str> <str name="prdMainSubTitle_product_str_s">The Natural Solution for Pain</str> <str name="prdMainTitle_product_s">Miracle of MSM</str> <str name="prdMainTitle_product_str_s">Miracle of MSM</str> <str name="productId_product_s">711069667</str> <str name="productId_product_str_s">711069667</str> <str name="productPrice_product_s">0</str> <str name="productPrice_product_str_s">0</str> <str name="websiteId_product_s">510000728</str> <str name="websiteId_product_str_s">510000728</str> </doc> - <doc> <float name="score">1.1942948E-5</float> <str name="IndexId_s">product_711069593</str> <str name="IndexId_str_s">product_711069593</str> <str name="Index_Type_s">productIndex</str> <str name="Index_Type_str_s">productIndex</str> <str name="isbn10_product_s">0140265139</str> <str name="isbn10_product_str_s">0140265139</str> <str name="isbn13_product_s">9780140265132</str> <str name="isbn13_product_str_s">9780140265132</str> <str name="prdMainSubTitle_product_s">The Search for the Great White Shark</str> <str name="prdMainSubTitle_product_str_s">The Search for the Great White Shark</str> <str name="prdMainTitle_product_s">Blue Meridian</str> <str name="prdMainTitle_product_str_s">Blue Meridian</str> <str name="productId_product_s">711069593</str> <str name="productId_product_str_s">711069593</str> <str name="productPrice_product_s">0</str> <str name="productPrice_product_str_s">0</str> <str name="websiteId_product_s">510000728</str> <str name="websiteId_product_str_s">510000728</str> </doc> - <doc> <float name="score">7.961965E-6</float> <str name="IndexId_s">product_711069724</str> <str name="IndexId_str_s">product_711069724</str> <str name="Index_Type_s">productIndex</str> <str name="Index_Type_str_s">productIndex</str> <str name="isbn10_product_s">0135206510</str> <str name="isbn10_product_str_s">0135206510</str> <str name="isbn13_product_s">9780135206515</str> <str name="isbn13_product_str_s">9780135206515</str> <str name="prdMainSubTitle_product_s">Hundreds of Sure-fire Techniques for Getting Your Way with People at Work</str> <str name="prdMainSubTitle_product_str_s">Hundreds of Sure-fire Techniques for Getting Your Way with People at Work</str> <str name="prdMainTitle_product_s">Art and Skill of Dealilng with People</str> <str name="prdMainTitle_product_str_s">Art and Skill of Dealilng with People</str> <str name="productId_product_s">711069724</str> <str name="productId_product_str_s">711069724</str> <str name="productPrice_product_s">0</str> <str name="productPrice_product_str_s">0</str> <str name="websiteId_product_s">510000728</str> <str name="websiteId_product_str_s">510000728</str> </doc> - <doc> <float name="score">1.617895E-7</float> <str name="IndexId_s">product_711069848</str> <str name="IndexId_str_s">product_711069848</str> <str name="Index_Type_s">productIndex</str> <str name="Index_Type_str_s">productIndex</str> <str name="isbn10_product_s">0721472869</str> <str name="isbn10_product_str_s">0721472869</str> <str name="isbn13_product_s">9780721472867</str> <str name="isbn13_product_str_s">9780721472867</str> <str name="prdMainTitle_product_s">Dinosaur Stories for 5-year-olds</str> <str name="prdMainTitle_product_str_s">Dinosaur Stories for 5-year-olds</str> <str name="prdPubDate_product_s">25-MAR-99</str> <str name="prdPubDate_product_str_s">25-MAR-99</str> <str name="productId_product_s">711069848</str> <str name="productId_product_str_s">711069848</str> <str name="productPrice_product_s">3.69</str> <str name="productPrice_product_str_s">3.69</str> <str name="websiteId_product_s">510000728</str> <str name="websiteId_product_str_s">510000728</str> </doc> </result> </response> Can anyone please suggest wht is wrong ? I think q.alt is supposed to work for all scenarios for which q works. Is'nt it the case? Thanks & Regards Tushar. -- View this message in context: http://www.nabble.com/Dismax-q.alt-field-for-field-level-boosting-tp21784359p21784359.html Sent from the Solr - User mailing list archive at Nabble.com.