Skip to content

Commit

Permalink
updated Lucene plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
albogdano committed Nov 7, 2024
1 parent c0f5e3d commit 384a6f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -317,13 +317,13 @@ public void testGetCount() {
@Test
public void testPaginationAndSorting() {
Pager pager = new Pager(2);
pager.setSortby("_docid");
List<User> page1 = s.findQuery(u.getType(), "type:user", pager);
pager.setPage(2);
List<User> page2 = s.findQuery(u.getType(), "type:user", pager);
pager.setPage(3);
List<User> page3 = s.findQuery(u.getType(), "type:user", pager);

assertFalse(s.findQuery(u.getType(), "type:user", new Pager(2, 2)).isEmpty());
assertEquals(2, page1.size());
assertEquals(1, page2.size());
assertEquals(0, page3.size());
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@
<httpClientVer>5.3.1</httpClientVer>
<httpCoreVer>5.2.4</httpCoreVer>
<commonsCodecVer>1.16.1</commonsCodecVer>
<lucenePluginVer>1.49.0</lucenePluginVer>
<lucenePluginVer>1.49.1</lucenePluginVer>
<sqlPluginVer>1.49.0</sqlPluginVer>
<junitVer>5.11.2</junitVer>
<junitPlatformVer>1.10.2</junitPlatformVer>
Expand Down

0 comments on commit 384a6f9

Please sign in to comment.