Skip to content

Commit

Permalink
Only fetch the latest 100 to minimize response size
Browse files Browse the repository at this point in the history
  • Loading branch information
mvilliger committed Jan 19, 2023
1 parent 081f412 commit 4edbf06
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public static Stream<String> allOnCentral(String groupId, String artifactId) thr
try {
var g = URLEncoder.encode(groupId, StandardCharsets.UTF_8);
var a = URLEncoder.encode(artifactId, StandardCharsets.UTF_8);
var uri = new URI("https://search.maven.org/solrsearch/select?q=g:" + g + "+AND+a:" + a + "&core=gav&rows=200&wt=xml");
var uri = new URI("https://search.maven.org/solrsearch/select?q=g:" + g + "+AND+a:" + a + "&core=gav&rows=100&wt=xml");
var dom = Xml.get(uri);
return Xml.evaluateXPath("result/doc/str[@name='v']", dom.getDocumentElement()).stream()
.map(Node::getTextContent)
Expand Down

0 comments on commit 4edbf06

Please sign in to comment.