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
This commit is contained in:
James Dyer 2012-06-04 19:01:31 +00:00
parent e2bf52080c
commit 649dfb6e79
2 changed files with 4 additions and 4 deletions

View File

@ -1245,7 +1245,7 @@
collations (re-written queries) can include a combination of collations (re-written queries) can include a combination of
corrections from both spellcheckers --> corrections from both spellcheckers -->
<str name="spellcheck.dictionary">default</str> <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">on</str>
<str name="spellcheck.extendedResults">true</str> <str name="spellcheck.extendedResults">true</str>
<str name="spellcheck.count">10</str> <str name="spellcheck.count">10</str>

View File

@ -75,10 +75,10 @@ public class TestSpellCheckResponse extends SolrJettyTestBase {
server.add(doc); server.add(doc);
server.commit(true, true); server.commit(true, true);
SolrQuery query = new SolrQuery("*:*"); SolrQuery query = new SolrQuery("name:samsang");
query.set(CommonParams.QT, "/spell"); query.set(CommonParams.QT, "/spell");
query.set("spellcheck", true); 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_BUILD, true);
query.set(SpellingParams.SPELLCHECK_EXTENDED_RESULTS, true); query.set(SpellingParams.SPELLCHECK_EXTENDED_RESULTS, true);
QueryRequest request = new QueryRequest(query); QueryRequest request = new QueryRequest(query);
@ -139,7 +139,7 @@ public class TestSpellCheckResponse extends SolrJettyTestBase {
QueryRequest request = new QueryRequest(query); QueryRequest request = new QueryRequest(query);
SpellCheckResponse response = request.process(server).getSpellCheckResponse(); SpellCheckResponse response = request.process(server).getSpellCheckResponse();
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 //Test Expanded Collation Results
query.set(SpellingParams.SPELLCHECK_COLLATE_EXTENDED_RESULTS, true); query.set(SpellingParams.SPELLCHECK_COLLATE_EXTENDED_RESULTS, true);