Lucene - Core
  1. Lucene - Core
  2. LUCENE-3970

Rename getUnique[Field/Terms]Count() into size()

    Details

    • Type: Task Task
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.0-ALPHA
    • Component/s: core/index
    • Labels:
      None
    • Lucene Fields:
      Patch Available

      Description

      Like Robert Muir said in LUCENE-3109:

      Also I think there are other improvements we can do here that would be more natural:
      Fields.getUniqueFieldCount() -> Fields.size()
      Terms.getUniqueTermCount() -> Terms.size()

      I believe this dramatically improves understandability (way less 'scary', actually beautiful).

        Activity

        Iulius Curt created issue -
        Iulius Curt made changes -
        Field Original Value New Value
        Attachment LUCENE-3970.patch [ 12521940 ]
        Iulius Curt made changes -
        Fix Version/s 4.0 [ 12314025 ]
        Michael McCandless made changes -
        Assignee Michael McCandless [ mikemccand ]
        Michael McCandless made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Uwe Schindler made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Michael McCandless
            Reporter:
            Iulius Curt
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development