Skip to content
Snippets Groups Projects
Commit 2d74f379 authored by Stefan E. Funk's avatar Stefan E. Funk
Browse files

Add more logging

parent 5843c45b
No related branches found
No related tags found
No related merge requests found
......@@ -372,6 +372,10 @@ public class OAIPMHUtilities {
*/
public static List<String> fieldLoader(JSONObject resultFromGetRequestInES, String[] fields) {
System.out
.println("JSON: " + (resultFromGetRequestInES == null ? "NULL" : resultFromGetRequestInES));
System.out.println("FIELDS: " + fields);
List<String> fieldResulsts = new ArrayList<String>();
for (String field : fields) {
......@@ -385,6 +389,9 @@ public class OAIPMHUtilities {
log.debug("singlePath: " + singlePath);
} catch (JSONException notFound) {
System.out.println("NULL");
return null;
}
} else if (fieldPathForESIndex.length == 1) {
......@@ -404,6 +411,8 @@ public class OAIPMHUtilities {
}
}
System.out.println("field results: " + fieldResulsts);
return fieldResulsts;
}
......@@ -454,9 +463,6 @@ public class OAIPMHUtilities {
protected static GetResponse getRcordByIDFromElasticSearch(String theElasticSearchIndexToUse,
String idInElasticSearchIndex, String[] includes, String[] excludes) throws IOException {
System.out.println("index: " + theElasticSearchIndexToUse);
System.out.println("id: " + idInElasticSearchIndex);
// Setting the source context for fetching the fields from the elastic search index
FetchSourceContext fetchSourceContext = new FetchSourceContext(true, includes, excludes);
......
......@@ -130,7 +130,6 @@ public abstract class RecordListDelivererAbstract implements RecordListDeliverer
scrollRequest.scroll(TimeValue.timeValueHours(24L));
try {
scrollResp = OAI_ESClient.getEsClient().scroll(scrollRequest, RequestOptions.DEFAULT);
} catch (IOException e) {
// TODO Auto-generated catch block
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment