Skip to content

Commit

Permalink
fix test case
Browse files Browse the repository at this point in the history
  • Loading branch information
mdavis95 committed May 7, 2022
1 parent a2b066f commit a098f97
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ public void searchTest() throws Exception {
search = new Search(SIMPLE_TEST_INDEX);
search.addQuery(new ScoredQuery("\"something really special\" AND rating:[4.0 TO *]").addQueryFields("title","description"));
searchResult = zuliaWorkPool.search(search);
Assertions.assertEquals(3*repeatCount, searchResult.getTotalHits());
Assertions.assertEquals(repeatCount, searchResult.getTotalHits());

search = new Search(SIMPLE_TEST_INDEX);
search.addQuery(new ScoredQuery("description:\"something really special\"").addQueryFields("title","description"));
Expand All @@ -200,7 +200,7 @@ public void searchTest() throws Exception {
search = new Search(SIMPLE_TEST_INDEX);
search.addQuery(new ScoredQuery("boring AND (reddish OR red)").addQueryFields("title","description"));
searchResult = zuliaWorkPool.search(search);
Assertions.assertEquals(1, searchResult.getTotalHits());
Assertions.assertEquals(repeatCount, searchResult.getTotalHits());

search = new Search(SIMPLE_TEST_INDEX);
search.addQuery(new ScoredQuery("\"something really special\"~1").addQueryFields("title","description"));
Expand Down

0 comments on commit a098f97

Please sign in to comment.