Hello,
>From the response you pasted here, it looks like the field
"itemNoExactMatchStr"
never matched.
Can you try matching in that field only and ensure you have matches ? Given
the ^30 boost, you should have high scores on this field...
Hope this helps,
--
Tanguy
2012/5/15 geeky2
> Hello all,
>
>
> i am trying to tune our core for exact matches on a single field (itemNo)
> and having issues getting it to work.
>
> in addition - i need help understanding the output from debugQuery=on where
> it presents the scoring.
>
> my goal is to get exact matches to arrive at the top of the results.
> however - what i am seeing is non-exact matches arrive at the top of the
> results with MUCH higher scores.
>
>
>
> // from schema.xml - i am copying itemNo in to the string field for use in
> boosting
>
> stored="false"/>
>
>
> // from solrconfig.xml - i have the boost set for my special exact match
> field and the sorting on score desc.
>
> class="solr.SearchHandler" default="false">
>
> edismax
> all
> 10
> *itemNoExactMatchStr^30 itemNo^.9 divProductTypeDesc^.8
> brand^.5*
> *:*
> * score desc*
> true
> itemDescFacet
> brandFacet
> divProductTypeIdFacet
>
>
>
>
>
>
>
>
>
> // analysis output from debugQuery=on
>
> here you can see that the top socre for itemNo:9030 is a part that does not
> start with 9030.
>
> the entries below (there are 4) all have exact matches - but they rank
> below
> this part - ???
>
>
>
>
> 0.585678 = (MATCH) max of:
> 0.585678 = (MATCH) weight(itemNo:9030^0.9 in 582979), product of:
>0.021552926 = queryWeight(itemNo:9030^0.9), product of:
> 0.9 = boost
> 10.270785 = idf(docFreq=55, maxDocs=594893)
> 0.0023316324 = queryNorm
>27.173943 = (MATCH) fieldWeight(itemNo:9030 in 582979), product of:
> 2.6457512 = tf(termFreq(itemNo:9030)=7)
> 10.270785 = idf(docFreq=55, maxDocs=594893)
> 1.0 = fieldNorm(field=itemNo, doc=582979)
>
>
>
>
>
> 0.22136548 = (MATCH) max of:
> 0.22136548 = (MATCH) weight(itemNo:9030^0.9 in 499864), product of:
>0.021552926 = queryWeight(itemNo:9030^0.9), product of:
> 0.9 = boost
> 10.270785 = idf(docFreq=55, maxDocs=594893)
> 0.0023316324 = queryNorm
>10.270785 = (MATCH) fieldWeight(itemNo:9030 in 499864), product of:
> 1.0 = tf(termFreq(itemNo:9030)=1)
> 10.270785 = idf(docFreq=55, maxDocs=594893)
> 1.0 = fieldNorm(field=itemNo, doc=499864)
>
>
>
> 0.22136548 = (MATCH) max of:
> 0.22136548 = (MATCH) weight(itemNo:9030^0.9 in 538826), product of:
>0.021552926 = queryWeight(itemNo:9030^0.9), product of:
> 0.9 = boost
> 10.270785 = idf(docFreq=55, maxDocs=594893)
> 0.0023316324 = queryNorm
>10.270785 = (MATCH) fieldWeight(itemNo:9030 in 538826), product of:
> 1.0 = tf(termFreq(itemNo:9030)=1)
> 10.270785 = idf(docFreq=55, maxDocs=594893)
> 1.0 = fieldNorm(field=itemNo, doc=538826)
>
>
>
> 0.22136548 = (MATCH) max of:
> 0.22136548 = (MATCH) weight(itemNo:9030^0.9 in 544313), product of:
>0.021552926 = queryWeight(itemNo:9030^0.9), product of:
> 0.9 = boost
> 10.270785 = idf(docFreq=55, maxDocs=594893)
> 0.0023316324 = queryNorm
>10.270785 = (MATCH) fieldWeight(itemNo:9030 in 544313), product of:
> 1.0 = tf(termFreq(itemNo:9030)=1)
> 10.270785 = idf(docFreq=55, maxDocs=594893)
> 1.0 = fieldNorm(field=itemNo, doc=544313)
>
>
>
> 0.22136548 = (MATCH) max of:
> 0.22136548 = (MATCH) weight(itemNo:9030^0.9 in 544657), product of:
>0.021552926 = queryWeight(itemNo:9030^0.9), product of:
> 0.9 = boost
> 10.270785 = idf(docFreq=55, maxDocs=594893)
> 0.0023316324 = queryNorm
>10.270785 = (MATCH) fieldWeight(itemNo:9030 in 544657), product of:
> 1.0 = tf(termFreq(itemNo:9030)=1)
> 10.270785 = idf(docFreq=55, maxDocs=594893)
> 1.0 = fieldNorm(field=itemNo, doc=544657)
>
>
>
>
>
>
>
>
> --
> View this message in context:
> http://lucene.472066.n3.nabble.com/need-help-with-getting-exact-matches-to-score-higher-tp3983882.html
> Sent from the Solr - User mailing list archive at Nabble.com.
>