You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by to...@apache.org on 2017/04/12 07:55:32 UTC

lucene-solr:master: LUCENE-7776 - adjusted failing tests in solr due to switching to bm25 in knn

Repository: lucene-solr
Updated Branches:
  refs/heads/master 9ed722f56 -> 7fde878ae


LUCENE-7776 - adjusted failing tests in solr due to switching to bm25 in knn


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

Branch: refs/heads/master
Commit: 7fde878ae4780f1837189e4e8c531b373bc87c07
Parents: 9ed722f
Author: Tommaso Teofili <to...@apache.org>
Authored: Wed Apr 12 09:55:03 2017 +0200
Committer: Tommaso Teofili <to...@apache.org>
Committed: Wed Apr 12 09:55:03 2017 +0200

----------------------------------------------------------------------
 .../solr/update/processor/ClassificationUpdateProcessorTest.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/7fde878a/solr/core/src/test/org/apache/solr/update/processor/ClassificationUpdateProcessorTest.java
----------------------------------------------------------------------
diff --git a/solr/core/src/test/org/apache/solr/update/processor/ClassificationUpdateProcessorTest.java b/solr/core/src/test/org/apache/solr/update/processor/ClassificationUpdateProcessorTest.java
index 432bb02..aa536a7 100644
--- a/solr/core/src/test/org/apache/solr/update/processor/ClassificationUpdateProcessorTest.java
+++ b/solr/core/src/test/org/apache/solr/update/processor/ClassificationUpdateProcessorTest.java
@@ -99,7 +99,7 @@ public class ClassificationUpdateProcessorTest extends SolrTestCaseJ4 {
     updateProcessorToTest=new ClassificationUpdateProcessor(params,mockProcessor,reader,req().getSchema());
     updateProcessorToTest.processAdd(update);
 
-    assertThat(unseenDocument1.getFieldValue(PREDICTED_CLASS),is("class1"));
+    assertThat(unseenDocument1.getFieldValue(PREDICTED_CLASS),is("class2"));
   }
 
   @Test
@@ -119,7 +119,7 @@ public class ClassificationUpdateProcessorTest extends SolrTestCaseJ4 {
     updateProcessorToTest=new ClassificationUpdateProcessor(params,mockProcessor,reader,req().getSchema());
     updateProcessorToTest.processAdd(update);
 
-    assertThat(unseenDocument1.getFieldValue(TRAINING_CLASS),is("class1"));
+    assertThat(unseenDocument1.getFieldValue(TRAINING_CLASS),is("class2"));
   }
 
   @Test