Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-3981

docBoost is compounded on copyField

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 4.0
    • 4.1, 6.0
    • None
    • None

    Description

      As noted by Toke in a comment on SOLR-3875...

      https://issues.apache.org/jira/browse/SOLR-3875?focusedCommentId=13482233&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-13482233

      While boosting of multi-value fields is handled correctly in Solr 4.0.0, boosting for copyFields are not. A sample document:

      <add><doc boost="10.0">
        <field name="id">Insane score Example. Score = 10E9 </field>
        <field name="name">Document boost broken for copyFields</field>
        <field name="manu" >video ThomasEgense and Toke Eskildsen</field>
        <field name="manu_id_s">Test</field>
        <field name="cat">bug</field>
        <field name="features">something else</field>
        <field name="keywords">bug</field>
        <field name="content">bug</field>
        </doc></add>
      

      The fields name, manu, cat, features, keywords and content gets copied to text and a search for thomasegense matches the text-field with query explanation

      70384.67 = (MATCH) weight(text:thomasegense in 0) [DefaultSimilarity], result of:
        70384.67 = fieldWeight in 0, product of:
          1.0 = tf(freq=1.0), with freq of:
            1.0 = termFreq=1.0
          0.30685282 = idf(docFreq=1, maxDocs=1)
          229376.0 = fieldNorm(doc=0)
      

      If the two last fields keywords and content are removed from the sample document, the score is reduced by a factor 100 (docBoost^2).

      (This is a continuation of some of the problems caused by the changes made when the concept of docBoost was eliminated from the underly IndexWRiter code, and overlooked due to the lack of testing of docBoosts at the solr level - SOLR-3885))

      Attachments

        1. SOLR-3981.patch
          13 kB
          Chris M. Hostetter
        2. SOLR-3981.patch
          11 kB
          Chris M. Hostetter
        3. SOLR-3981.patch
          8 kB
          Chris M. Hostetter

        Issue Links

          Activity

            People

              hossman Chris M. Hostetter
              hossman Chris M. Hostetter
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: