You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by jd...@apache.org on 2012/06/04 21:01:32 UTC

svn commit: r1346088 - in /lucene/dev/trunk/solr: example/solr/conf/solrconfig.xml solrj/src/test/org/apache/solr/client/solrj/response/TestSpellCheckResponse.java

Author: jdyer
Date: Mon Jun  4 19:01:31 2012
New Revision: 1346088

URL: http://svn.apache.org/viewvc?rev=1346088&view=rev
Log:
SOLR-2993:  fix (1) for fail on TestSpellCheckResponse

Modified:
    lucene/dev/trunk/solr/example/solr/conf/solrconfig.xml
    lucene/dev/trunk/solr/solrj/src/test/org/apache/solr/client/solrj/response/TestSpellCheckResponse.java

Modified: lucene/dev/trunk/solr/example/solr/conf/solrconfig.xml
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/example/solr/conf/solrconfig.xml?rev=1346088&r1=1346087&r2=1346088&view=diff
==============================================================================
--- lucene/dev/trunk/solr/example/solr/conf/solrconfig.xml (original)
+++ lucene/dev/trunk/solr/example/solr/conf/solrconfig.xml Mon Jun  4 19:01:31 2012
@@ -1245,7 +1245,7 @@
            collations (re-written queries) can include a combination of
            corrections from both spellcheckers -->
       <str name="spellcheck.dictionary">default</str>
-      <str name="spellcheck.dictionary">wordbreak</str>
+      <!--str name="spellcheck.dictionary">wordbreak</str-->
       <str name="spellcheck">on</str>
       <str name="spellcheck.extendedResults">true</str>       
       <str name="spellcheck.count">10</str>

Modified: lucene/dev/trunk/solr/solrj/src/test/org/apache/solr/client/solrj/response/TestSpellCheckResponse.java
URL: http://svn.apache.org/viewvc/lucene/dev/trunk/solr/solrj/src/test/org/apache/solr/client/solrj/response/TestSpellCheckResponse.java?rev=1346088&r1=1346087&r2=1346088&view=diff
==============================================================================
--- lucene/dev/trunk/solr/solrj/src/test/org/apache/solr/client/solrj/response/TestSpellCheckResponse.java (original)
+++ lucene/dev/trunk/solr/solrj/src/test/org/apache/solr/client/solrj/response/TestSpellCheckResponse.java Mon Jun  4 19:01:31 2012
@@ -75,10 +75,10 @@ public class TestSpellCheckResponse exte
     server.add(doc);
     server.commit(true, true);
 
-    SolrQuery query = new SolrQuery("*:*");
+    SolrQuery query = new SolrQuery("name:samsang");
     query.set(CommonParams.QT, "/spell");
     query.set("spellcheck", true);
-    query.set(SpellingParams.SPELLCHECK_Q, "samsang");
+    //query.set(SpellingParams.SPELLCHECK_Q, "samsang");
     query.set(SpellingParams.SPELLCHECK_BUILD, true);
     query.set(SpellingParams.SPELLCHECK_EXTENDED_RESULTS, true);
     QueryRequest request = new QueryRequest(query);
@@ -139,7 +139,7 @@ public class TestSpellCheckResponse exte
     QueryRequest request = new QueryRequest(query);
     SpellCheckResponse response = request.process(server).getSpellCheckResponse();
     response = request.process(server).getSpellCheckResponse();
-    assertTrue("name:(+faith +homer +loaves)".equals(response.getCollatedResult()));
+    assertTrue("name:(+faith +hope +loaves)".equals(response.getCollatedResult()));
     
     //Test Expanded Collation Results
     query.set(SpellingParams.SPELLCHECK_COLLATE_EXTENDED_RESULTS, true);