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

Confusing Javadoc in Searchable.java

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 2.9
    • 2.9
    • core/search
    • None
    • New, Patch Available

    Description

      In Searchable.java, the javadoc for maxdoc() is:

      /** Expert: Returns one greater than the largest possible document number.

      • Called by search code to compute term weights.
      • @see org.apache.lucene.index.IndexReader#maxDoc()

      The qualification "expert" and the statement "called by search code to compute term weights" is a bit confusing, It implies that maxdoc() somehow computes weights, which is obviously not true (what it does is explained in the other sentence). Maybe it is used as one factor of the weight, but do we really need to mention this here?

      Attachments

        1. LUCENE-1900.patch
          2 kB
          Mark Miller

        Activity

          People

            markrmiller@gmail.com Mark Miller
            nyh Nadav Har'El
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: