Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-10963

Sample model json format for MultipleAdditiveTreesModel is incorrect

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.4, 6.4.1, 6.4.2, 6.5, 6.5.1, 6.6
    • Fix Version/s: 7.0, 6.7
    • Component/s: None
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      None

      Description

      When I try to use the example json file in the javadoc of MultipleAdditiveTreesModel.java I receive the following error:

      org.apache.solr.ltr.model.ModelException: Model type does not exist org.apache.solr.ltr.model.MultipleAdditiveTreesModel

      The sample model from the documentation is working. The difference seems to be the quoted numbers. I can confirm that once quoted I no longer have the problem and the setter methods all expect Strings.

      It's a little bit confusing as this error message does not really pin down the root of the problem.

        Issue Links

          Activity

          Hide
          githubbot ASF GitHub Bot added a comment -

          GitHub user stefan-langenmaier opened a pull request:

          https://github.com/apache/lucene-solr/pull/214

          SOLR-10963 fix documentation for json format

          MultipleAdditiveTreesModel wants strings for all values

          You can merge this pull request into a Git repository by running:

          $ git pull https://github.com/stefan-langenmaier/lucene-solr SOLR-10963-fix-documentation-for-json-format

          Alternatively you can review and apply these changes as the patch at:

          https://github.com/apache/lucene-solr/pull/214.patch

          To close this pull request, make a commit to your master/trunk branch
          with (at least) the following in the commit message:

          This closes #214


          commit b3e51aa2706e3ec844c159f87f7d48653837796b
          Author: Stefan Langenmaier <stefan.langenmaier@shi-gmbh.com>
          Date: 2017-06-27T11:52:40Z

          SOLR-10963 fix documentation for json format

          MultipleAdditiveTreesModel wants strings for all values


          Show
          githubbot ASF GitHub Bot added a comment - GitHub user stefan-langenmaier opened a pull request: https://github.com/apache/lucene-solr/pull/214 SOLR-10963 fix documentation for json format MultipleAdditiveTreesModel wants strings for all values You can merge this pull request into a Git repository by running: $ git pull https://github.com/stefan-langenmaier/lucene-solr SOLR-10963 -fix-documentation-for-json-format Alternatively you can review and apply these changes as the patch at: https://github.com/apache/lucene-solr/pull/214.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #214 commit b3e51aa2706e3ec844c159f87f7d48653837796b Author: Stefan Langenmaier <stefan.langenmaier@shi-gmbh.com> Date: 2017-06-27T11:52:40Z SOLR-10963 fix documentation for json format MultipleAdditiveTreesModel wants strings for all values
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit 9c75c8082d133a221117dd21cb330e152d76cda4 in lucene-solr's branch refs/heads/master from Christine Poerschke
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=9c75c80 ]

          SOLR-10963: Fix example json in MultipleAdditiveTreesModel javadocs. (Stefan Langenmaier via Christine Poerschke)

          Show
          jira-bot ASF subversion and git services added a comment - Commit 9c75c8082d133a221117dd21cb330e152d76cda4 in lucene-solr's branch refs/heads/master from Christine Poerschke [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=9c75c80 ] SOLR-10963 : Fix example json in MultipleAdditiveTreesModel javadocs. (Stefan Langenmaier via Christine Poerschke)
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit c9186417336934bbe6d854454f6a00f4124316e2 in lucene-solr's branch refs/heads/branch_6x from Christine Poerschke
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=c918641 ]

          SOLR-10963: Fix example json in MultipleAdditiveTreesModel javadocs. (Stefan Langenmaier via Christine Poerschke)

          Show
          jira-bot ASF subversion and git services added a comment - Commit c9186417336934bbe6d854454f6a00f4124316e2 in lucene-solr's branch refs/heads/branch_6x from Christine Poerschke [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=c918641 ] SOLR-10963 : Fix example json in MultipleAdditiveTreesModel javadocs. (Stefan Langenmaier via Christine Poerschke)
          Hide
          cpoerschke Christine Poerschke added a comment -
          Show
          cpoerschke Christine Poerschke added a comment - Thanks Stefan Langenmaier !

            People

            • Assignee:
              cpoerschke Christine Poerschke
              Reporter:
              stefan.langenmaier Stefan Langenmaier
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development