Apache Lucene open-source search software
SOLR-2993: fix (1) for fail on TestSpellCheckResponse
James Dyer649dfb6e792a
diff --git a/solr/example/solr/conf/solrconfig.xml b/solr/example/solr/conf/solrconfig.xmlindex bd80e6ce088..762cddd928c 100755--- a/solr/example/solr/conf/solrconfig.xml+++ b/solr/example/solr/conf/solrconfig.xml@@ -1245,7 +1245,7 @@collations (re-written queries) can include a combination ofcorrections 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>diff --git a/solr/solrj/src/test/org/apache/solr/client/solrj/response/TestSpellCheckResponse.java b/solr/solrj/src/test/org/apache/solr/client/solrj/response/TestSpellCheckResponse.javaindex 2b0f007594a..17d6890dea4 100644--- a/solr/solrj/src/test/org/apache/solr/client/solrj/response/TestSpellCheckResponse.java+++ b/solr/solrj/src/test/org/apache/solr/client/solrj/response/TestSpellCheckResponse.java@@ -75,10 +75,10 @@ public class TestSpellCheckResponse extends SolrJettyTestBase {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 extends SolrJettyTestBase {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 Resultsquery.set(SpellingParams.SPELLCHECK_COLLATE_EXTENDED_RESULTS, true);