mkhludnev commented on code in PR #1378: URL: https://github.com/apache/solr/pull/1378#discussion_r1116735330
########## solr/solrj/src/test/org/apache/solr/client/solrj/SolrExampleTests.java: ########## @@ -571,6 +572,57 @@ public void testGetEmptyResults() throws Exception { assertEquals(0, out.get(1).size()); } + @Test + public void testMatchAllPaging() throws Exception { + SolrClient client = getSolrClient(); + + // Empty the database... + client.deleteByQuery("*:*"); // delete everything! + if (random().nextBoolean()) { + client.commit(); + } + // Add eleven docs + List<SolrInputDocument> docs = new ArrayList<>(); + for (int i = 0; i < 11; i++) { + SolrInputDocument doc = new SolrInputDocument(); + doc.addField("id", "id" + i); + doc.addField("name", "doc" + i); + doc.addField("price", "" + i); + docs.add(doc); + if (rarely()) { + client.commit(); Review Comment: Oh..gosh. Thanks for spotting it @cpoerschke . -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org