mirror of
https://github.com/Alfresco/SearchServices.git
synced 2026-09-16 18:12:56 +00:00
Merge branch 'fix/SEARCH-2078_SpellCheckFixes' into 'master'
Fix/search 2078 spell check fixes See merge request search_discovery/insightengine!409
This commit is contained in:
+4
-4
@@ -318,10 +318,10 @@ public class SearchSpellCheckTest extends AbstractSearchServicesE2ETest
|
||||
testSearchSpellcheckResponse(response, "searchInsteadFor", "eklipse");
|
||||
|
||||
// Add Solr Query, to check the suggestions on each shard
|
||||
restClient.authenticateUser(testUser).withParams("spellcheck.q=eclipses&spellcheck=on").withSolrAPI().getSelectQuery();
|
||||
restClient.authenticateUser(testUser).withParams("spellcheck.q=eclipsess&spellcheck=on").withSolrAPI().getSelectQuery();
|
||||
|
||||
// Incorrect spelling with no field for file2
|
||||
response = SearchSpellcheckQuery(testUser, "eclipses", "eclipses");
|
||||
response = SearchSpellcheckQuery(testUser, "eclipsess", "eclipsess");
|
||||
|
||||
// Matching Result, Spellcheck = searchInsteadFor: eklipses
|
||||
Assert.assertTrue(isContentInSearchResponse(response, file2.getName()), "Expected file not returned in the search results: " + file.getName());
|
||||
@@ -467,11 +467,11 @@ public class SearchSpellCheckTest extends AbstractSearchServicesE2ETest
|
||||
testSearchSpellcheckResponse(response, null, null);
|
||||
|
||||
// Add Solr Query, to check the suggestions on the shard
|
||||
restClient.authenticateUser(testUser).withParams("spellcheck.q=spaceber&spellcheck=on").withSolrAPI().getSelectQuery();
|
||||
restClient.authenticateUser(testUser).withParams("spellcheck.q=spacebur&spellcheck=on").withSolrAPI().getSelectQuery();
|
||||
|
||||
// Checks for User 2
|
||||
// Incorrect spelling for files created no field
|
||||
response = SearchSpellcheckQuery(testUser2, "spaceber", "spaceber");
|
||||
response = SearchSpellcheckQuery(testUser2, "spacebur", "spacebur");
|
||||
|
||||
// Matching Result, Spellcheck = searchInsteadFor: spacecar
|
||||
Assert.assertTrue(isContentInSearchResponse(response, file2.getName()), "Expected file not returned in the search results: " + file2.getName());
|
||||
|
||||
Reference in New Issue
Block a user