Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-3970

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

Details

    • Task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • 4.0-ALPHA
    • core/index
    • None
    • 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).

      Attachments

        1. LUCENE-3970.patch
          33 kB
          Iulius Curt

        Activity

          People

            mikemccand Michael McCandless
            iuliux Iulius Curt
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: