lewismc commented on a change in pull request #6: SDAP-35 (completed the 
configuration change)
URL: 
https://github.com/apache/incubator-sdap-mudrod/pull/6#discussion_r172945299
 
 

 ##########
 File path: 
core/src/main/java/org/apache/sdap/mudrod/recommendation/pre/SessionCooccurence.java
 ##########
 @@ -131,15 +138,16 @@ public Object execute(Object o) {
   private Map<String, String> getOnServiceMetadata(ESDriver es) {
 
     String indexName = props.getProperty(MudrodConstants.ES_INDEX_NAME);
-    String metadataType = props.getProperty("recom_metadataType");
+    String metadataType = MudrodConstants.RECOM_METADATA_TYPE;
 
     Map<String, String> shortnameMap = new HashMap<>();
     SearchResponse scrollResp = 
es.getClient().prepareSearch(indexName).setTypes(metadataType).setScroll(new 
TimeValue(60000)).setQuery(QueryBuilders.matchAllQuery()).setSize(100).execute()
         .actionGet();
     while (true) {
       for (SearchHit hit : scrollResp.getHits().getHits()) {
         Map<String, Object> metadata = hit.getSource();
-        String shortName = (String) metadata.get("Dataset-ShortName");
+        //String shortName = (String) metadata.get("Dataset-ShortName");
 
 Review comment:
   Remove commented out code

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to