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

Document boost fail if a field copy omit the norms

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.6, 4.0-ALPHA
    • Component/s: None
    • Labels:
      None

      Description

      After https://issues.apache.org/jira/browse/LUCENE-3796, it is not possible to set a boost to a field that has the "omitNorms" set to true. This is making Solr's document index-time boost to fail when a field that doesn't omit norms is copied (with copyField) to a field that does omit them and document boost is used. For example:

      <field name="author" type="text" indexed="true" stored="false" omitNorms="false"/>
      <field name="author_display" type="string" indexed="true" stored="true" omitNorms="true"/>
      <copyField source="author" dest="author_display"/>

      I'm attaching a possible fix.

        Attachments

        1. SOLR-3241.patch
          3 kB
          Tomás Fernández Löbbe
        2. SOLR-3241.patch
          3 kB
          Robert Muir
        3. SOLR-3241.patch
          6 kB
          Robert Muir
        4. SOLR-3241.patch
          8 kB
          Tomás Fernández Löbbe
        5. SOLR-3241.patch
          11 kB
          Robert Muir

          Activity

            People

            • Assignee:
              rcmuir Robert Muir
              Reporter:
              tomasflobbe Tomás Fernández Löbbe
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: