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

The QueryScorer.getMaxWeight method is not found.

    Details

    • Lucene Fields:
      New

      Description

      The following API documents refer to the QueryScorer.getMaxWeight method:
      http://lucene.apache.org/core/4_1_0/highlighter/org/apache/lucene/search/highlight/package-summary.html
      "The QueryScorer.getMaxWeight method is useful when passed to the GradientFormatter constructor to define the top score which is associated with the top color."
      http://lucene.apache.org/core/4_1_0/highlighter/org/apache/lucene/search/highlight/GradientFormatter.html
      "See QueryScorer.getMaxWeight which can be used to calibrate scoring scale"

      However, the QueryScorer class does not declare a getMaxWeight method in lucene 4.1, according to its document:
      http://lucene.apache.org/core/4_1_0/highlighter/org/apache/lucene/search/highlight/QueryScorer.html

      Instead, the class declares a getMaxTermWeight method. Is that the correct method in the preceding two documents? If it is, please revise the two documents.

      1. LUCENE-4787.patch
        2 kB
        Michael Dodsworth

        Activity

        Hide
        erickerickson Erick Erickson added a comment -

        It would be great if you could go ahead and create a patch for these, see: http://wiki.apache.org/solr/HowToContribute. Since you're right in the middle of seeing this, you're in a great position to go ahead and update the docs.

        Show
        erickerickson Erick Erickson added a comment - It would be great if you could go ahead and create a patch for these, see: http://wiki.apache.org/solr/HowToContribute . Since you're right in the middle of seeing this, you're in a great position to go ahead and update the docs.
        Hide
        mdodsworth@salesforce.com Michael Dodsworth added a comment -

        doc fixed in the attached patch.

        Show
        mdodsworth@salesforce.com Michael Dodsworth added a comment - doc fixed in the attached patch.
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit bd7689b74de0c3201391e1f7d3b254b7cf3513e4 in lucene-solr's branch refs/heads/branch_6x from Adrien Grand
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=bd7689b ]

        LUCENE-4787: Fixed some highlighting javadocs.

        Show
        jira-bot ASF subversion and git services added a comment - Commit bd7689b74de0c3201391e1f7d3b254b7cf3513e4 in lucene-solr's branch refs/heads/branch_6x from Adrien Grand [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=bd7689b ] LUCENE-4787 : Fixed some highlighting javadocs.
        Hide
        jira-bot ASF subversion and git services added a comment -

        Commit 09fd65b0150364b2e82d1f9ab954751a38653f45 in lucene-solr's branch refs/heads/master from Adrien Grand
        [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=09fd65b ]

        LUCENE-4787: Fixed some highlighting javadocs.

        Show
        jira-bot ASF subversion and git services added a comment - Commit 09fd65b0150364b2e82d1f9ab954751a38653f45 in lucene-solr's branch refs/heads/master from Adrien Grand [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=09fd65b ] LUCENE-4787 : Fixed some highlighting javadocs.
        Hide
        jpountz Adrien Grand added a comment -

        Merged, thanks (and sorry for the delay)!

        Show
        jpountz Adrien Grand added a comment - Merged, thanks (and sorry for the delay)!
        Hide
        mikemccand Michael McCandless added a comment -

        Bulk close resolved issues after 6.2.0 release.

        Show
        mikemccand Michael McCandless added a comment - Bulk close resolved issues after 6.2.0 release.

          People

          • Assignee:
            Unassigned
            Reporter:
            drzhonghao Hao Zhong
          • Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development