You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by cp...@apache.org on 2017/06/27 12:40:41 UTC

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

Repository: lucene-solr
Updated Branches:
  refs/heads/master e4d0bb7dc -> 9c75c8082


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


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/9c75c808
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/9c75c808
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/9c75c808

Branch: refs/heads/master
Commit: 9c75c8082d133a221117dd21cb330e152d76cda4
Parents: e4d0bb7
Author: Christine Poerschke <cp...@apache.org>
Authored: Tue Jun 27 13:22:11 2017 +0100
Committer: Christine Poerschke <cp...@apache.org>
Committed: Tue Jun 27 13:22:11 2017 +0100

----------------------------------------------------------------------
 solr/CHANGES.txt                                    |  3 +++
 .../solr/ltr/model/MultipleAdditiveTreesModel.java  | 16 ++++++++--------
 2 files changed, 11 insertions(+), 8 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9c75c808/solr/CHANGES.txt
----------------------------------------------------------------------
diff --git a/solr/CHANGES.txt b/solr/CHANGES.txt
index 7720ef2..7002993 100644
--- a/solr/CHANGES.txt
+++ b/solr/CHANGES.txt
@@ -464,6 +464,9 @@ Bug Fixes
 * SOLR-10824: fix NPE ExactSharedStatsCache, fixing maxdocs skew for terms which are absent at one of shards
 when using one of Exact*StatsCache (Mikhail Khludnev)
 
+* SOLR-10963: Fix example json in MultipleAdditiveTreesModel javadocs.
+  (Stefan Langenmaier via Christine Poerschke)
+
 Optimizations
 ----------------------
 * SOLR-10634: JSON Facet API: When a field/terms facet will retrieve all buckets (i.e. limit:-1)

http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/9c75c808/solr/contrib/ltr/src/java/org/apache/solr/ltr/model/MultipleAdditiveTreesModel.java
----------------------------------------------------------------------
diff --git a/solr/contrib/ltr/src/java/org/apache/solr/ltr/model/MultipleAdditiveTreesModel.java b/solr/contrib/ltr/src/java/org/apache/solr/ltr/model/MultipleAdditiveTreesModel.java
index 926fab4..278a4f5 100644
--- a/solr/contrib/ltr/src/java/org/apache/solr/ltr/model/MultipleAdditiveTreesModel.java
+++ b/solr/contrib/ltr/src/java/org/apache/solr/ltr/model/MultipleAdditiveTreesModel.java
@@ -42,29 +42,29 @@ import org.apache.solr.util.SolrPluginUtils;
    "params" : {
        "trees" : [
            {
-               "weight" : 1,
+               "weight" : "1",
                "root": {
                    "feature" : "userTextTitleMatch",
-                   "threshold" : 0.5,
+                   "threshold" : "0.5",
                    "left" : {
-                       "value" : -100
+                       "value" : "-100"
                    },
                    "right" : {
                        "feature" : "originalScore",
-                       "threshold" : 10.0,
+                       "threshold" : "10.0",
                        "left" : {
-                           "value" : 50
+                           "value" : "50"
                        },
                        "right" : {
-                           "value" : 75
+                           "value" : "75"
                        }
                    }
                }
            },
            {
-               "weight" : 2,
+               "weight" : "2",
                "root" : {
-                   "value" : -10
+                   "value" : "-10"
                }
            }
        ]