List of usage examples for org.apache.solr.util RestTestHarness query
public String query(String request) throws Exception
From source file:org.typo3.solr.search.AccessFilterQParserPluginTest.java
License:Apache License
public static Map getResponseMap(String path, RestTestHarness restHarness) throws Exception { String response = restHarness.query(path); try {// w w w . j a v a 2 s.co m return (Map) ObjectBuilder.getVal(new JSONParser(new StringReader(response))); } catch (JSONParser.ParseException e) { log.error(response); return Collections.emptyMap(); } }