diff --git a/service/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/service/PicSureService.java b/service/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/service/PicSureService.java index 26e34403..ff9cddac 100644 --- a/service/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/service/PicSureService.java +++ b/service/src/main/java/edu/harvard/hms/dbmi/avillach/hpds/service/PicSureService.java @@ -146,8 +146,20 @@ public SearchResults search(@RequestBody QueryRequest searchJson) { }).collect(Collectors.toMap(Entry::getKey, Entry::getValue)) : allColumns; // Info Values - Map infoResults = new HashMap<>(); - log.warn("Info values no longer supported for this resource"); + Map infoResults = new TreeMap(); + abstractProcessor.getInfoStoreMeta().stream().forEach(infoColumnMeta -> { + //FileBackedByteIndexedInfoStore store = abstractProcessor.getInfoStore(infoColumn); + String query = searchJson.getQuery().toString(); + String lowerCase = query.toLowerCase(); + boolean storeIsNumeric = infoColumnMeta.isContinuous(); + if (infoColumnMeta.getDescription().toLowerCase().contains(lowerCase) + || infoColumnMeta.getKey().toLowerCase().contains(lowerCase)) { + infoResults.put(infoColumnMeta.getKey(), + ImmutableMap.of("description", infoColumnMeta.getDescription(), "values", + storeIsNumeric ? new ArrayList() : abstractProcessor.searchInfoConceptValues(infoColumnMeta.getKey(), ""), "continuous", + storeIsNumeric)); + } + }); return new SearchResults() .setResults( diff --git a/war/src/main/webapp/WEB-INF/web.xml b/war/src/main/webapp/WEB-INF/web.xml index 04fbef21..967fae1e 100644 --- a/war/src/main/webapp/WEB-INF/web.xml +++ b/war/src/main/webapp/WEB-INF/web.xml @@ -29,6 +29,7 @@ true + true