Lucene - Core
  1. Lucene - Core
  2. LUCENE-6426

FieldType copy constructor does not copy the numeric precision step

    Details

    • Type: Task Task
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2, 6.0
    • Component/s: None
    • Labels:
      None
    • Lucene Fields:
      New

      Description

      If you create a new FieldType with new FieldType(existingFieldType), the precision step will not be copied over.

        Activity

        Hide
        Adrien Grand added a comment -

        Here is a patch.

        Show
        Adrien Grand added a comment - Here is a patch.
        Hide
        Michael McCandless added a comment -

        +1

        That's a cool test case!

        Show
        Michael McCandless added a comment - +1 That's a cool test case!
        Hide
        Robert Muir added a comment -

        +1

        Show
        Robert Muir added a comment - +1
        Hide
        Adrien Grand added a comment -

        That's a cool test case!

        Freely inspired from TestRandomChains.

        Show
        Adrien Grand added a comment - That's a cool test case! Freely inspired from TestRandomChains.
        Hide
        ASF subversion and git services added a comment -

        Commit 1673790 from Adrien Grand in branch 'dev/trunk'
        [ https://svn.apache.org/r1673790 ]

        LUCENE-6426: Fix FieldType's copy constructor to also copy over the numeric precision step.

        Show
        ASF subversion and git services added a comment - Commit 1673790 from Adrien Grand in branch 'dev/trunk' [ https://svn.apache.org/r1673790 ] LUCENE-6426 : Fix FieldType's copy constructor to also copy over the numeric precision step.
        Hide
        ASF subversion and git services added a comment -

        Commit 1673793 from Adrien Grand in branch 'dev/branches/branch_5x'
        [ https://svn.apache.org/r1673793 ]

        LUCENE-6426: Fix FieldType's copy constructor to also copy over the numeric precision step.

        Show
        ASF subversion and git services added a comment - Commit 1673793 from Adrien Grand in branch 'dev/branches/branch_5x' [ https://svn.apache.org/r1673793 ] LUCENE-6426 : Fix FieldType's copy constructor to also copy over the numeric precision step.
        Hide
        Anshum Gupta added a comment -

        Bulk close for 5.2.0.

        Show
        Anshum Gupta added a comment - Bulk close for 5.2.0.

          People

          • Assignee:
            Adrien Grand
            Reporter:
            Adrien Grand
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development