mirror of https://github.com/apache/lucene.git
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:
parent
e2bf52080c
commit
649dfb6e79
|
@ -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>
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue