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

removed logging again.

parent 9798f423
No related branches found
No related tags found
No related merge requests found
......@@ -55,8 +55,9 @@ public class SetDeliverer {
*/
public ListSetsType setListBuilder() {
String meth = "setListBuilder() > ";
System.out.println(meth + "DARIAH=" + this.dariah + ", TEXTGRID=" + this.textgrid);
// String meth = "setListBuilder() > ";
// System.out.println(meth + "DARIAH=" + this.dariah + ", TEXTGRID=" + this.textgrid);
ListSetsType setList = new ListSetsType();
QueryBuilder aggQuery;
......@@ -67,18 +68,18 @@ public class SetDeliverer {
TextGridMimetypes.DARIAH_COLLECTION);
}
System.out.println(meth + "aggQuery: " + aggQuery);
// System.out.println(meth + "aggQuery: " + aggQuery);
SearchRequestBuilder request = OAI_ESClient.getOaiESClient()
.prepareSearch(OAI_ESClient.getEsIndex()).setTypes(OAI_ESClient.getEsType())
.setQuery(aggQuery).addField(this.formatField).addField(this.identifierField)
.addField("project.value").addField("project.id").setSize(100000);
System.out.println(meth + "request: " + request);
// System.out.println(meth + "request: " + request);
SearchResponse getRecordListItems = request.execute().actionGet();
System.out.println(meth + "getRecordListItems:" + getRecordListItems);
// System.out.println(meth + "getRecordListItems:" + getRecordListItems);
for (SearchHit hit : getRecordListItems.getHits().getHits()) {
if (this.dariah == true && hit.getFields().get(this.identifierField).values().get(0)
......@@ -86,7 +87,7 @@ public class SetDeliverer {
String pid = hit.getFields().get(this.identifierField).values().get(0).toString();
this.identifier.add(pid);
System.out.println(meth + "PID: " + pid);
// System.out.println(meth + "PID: " + pid);
}
if (this.textgrid == true) {
......@@ -95,7 +96,7 @@ public class SetDeliverer {
String projectSetSpec = projectName.concat(":").concat(projectID);
this.setSet.put(projectID, projectName);
System.out.println(meth + "projectID: " + projectSetSpec);
// System.out.println(meth + "projectID: " + projectSetSpec);
Iterator it = setSet.entrySet().iterator();
while (it.hasNext()) {
......
......@@ -155,7 +155,8 @@ public class OaiPmhTextgridOnlineTests {
// Testing for set: Digital Bibliothek.
String shouldContainTEXTGRIDLABORG =
"<setSpec>project:TGPR-372fe6dc-57f2-6cd4-01b5-2c4bbefcfd3c</setSpec>";
String shouldContainDEFTEXTGRIDLABORG = "<setSpec>project:</setSpec>";
String shouldContainDEFTEXTGRIDLABORG =
"<setSpec>project:TGPR-372fe6dc-57f2-6cd4-01b5-2c4bbefcfd3c</setSpec>";
System.out.println(TESTING + "#LISTSETS");
......
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