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

Document boost fail if a field copy omit the norms

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.6, 4.0-ALPHA
    • None
    • 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
          11 kB
          Robert Muir
        2. SOLR-3241.patch
          8 kB
          Tomas Eduardo Fernandez Lobbe
        3. SOLR-3241.patch
          6 kB
          Robert Muir
        4. SOLR-3241.patch
          3 kB
          Robert Muir
        5. SOLR-3241.patch
          3 kB
          Tomas Eduardo Fernandez Lobbe

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            rcmuir Robert Muir
            tflobbe Tomas Eduardo Fernandez Lobbe
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment