Solr
  1. Solr
  2. SOLR-3241

Document boost fail if a field copy omit the norms

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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.

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

        Activity

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development