Skip to content

Commit

Permalink
Update lucenePopulate with new format #27
Browse files Browse the repository at this point in the history
  • Loading branch information
patrick-austin committed Jul 24, 2022
1 parent 50dbf32 commit 87f699f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/main/java/org/icatproject/icat/client/ICAT.java
Original file line number Diff line number Diff line change
Expand Up @@ -847,9 +847,11 @@ List<String> luceneGetPopulating(String sessionId) throws IcatException {
}

void lucenePopulate(String sessionId, String entityName, long minid) throws IcatException {
URI uri = getUri(getUriBuilder("lucene/db/" + entityName + "/" + minid));
URI uri = getUri(getUriBuilder("lucene/db/" + entityName));
List<NameValuePair> formparams = new ArrayList<>();
formparams.add(new BasicNameValuePair("sessionId", sessionId));
formparams.add(new BasicNameValuePair("minId", Long.toString(minid)));
formparams.add(new BasicNameValuePair("delete", "true"));

try (CloseableHttpClient httpclient = HttpClients.createDefault()) {
HttpPost httpPost = new HttpPost(uri);
Expand Down

0 comments on commit 87f699f

Please sign in to comment.