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

bogus javadocs for FieldValueHitQuery.fillFields

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.9
    • None
    • None
    • New

    Description

      FieldValueHitQuery.fillFields has javadocs that seem to be left over from a completely different method...

        /**
         * Given a FieldDoc object, stores the values used to sort the given document.
         * These values are not the raw values out of the index, but the internal
         * representation of them. This is so the given search hit can be collated by
         * a MultiSearcher with other search hits.
         * 
         * @param doc
         *          The FieldDoc to store sort values into.
         * @return The same FieldDoc passed in.
         * @see Searchable#search(Weight,Filter,int,Sort)
         */
        FieldDoc fillFields(final Entry entry) {
          final int n = comparators.length;
          final Comparable[] fields = new Comparable[n];
          for (int i = 0; i < n; ++i) {
            fields[i] = comparators[i].value(entry.slot);
          }
          //if (maxscore > 1.0f) doc.score /= maxscore;   // normalize scores
          return new FieldDoc(entry.docID, entry.score, fields);
        }
      
      

      Attachments

        Activity

          People

            mikemccand Michael McCandless
            hossman Chris M. Hostetter
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: