From 649dfb6e792a90bb3c9356ef1b76faa804b77134 Mon Sep 17 00:00:00 2001 From: James Dyer Date: Mon, 4 Jun 2012 19:01:31 +0000 Subject: [PATCH] SOLR-2993: fix (1) for fail on TestSpellCheckResponse git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1346088 13f79535-47bb-0310-9956-ffa450edef68 --- solr/example/solr/conf/solrconfig.xml | 2 +- .../solr/client/solrj/response/TestSpellCheckResponse.java | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/solr/example/solr/conf/solrconfig.xml b/solr/example/solr/conf/solrconfig.xml index 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 of corrections from both spellcheckers --> default - wordbreak + on true 10 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.java index 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 Results query.set(SpellingParams.SPELLCHECK_COLLATE_EXTENDED_RESULTS, true);