@Test public void testRawValueQuery() throws Exception { StringHandle structuredQuery = new StringHandle( "{ \"query\": " + "{ \"queries\": [" + "{ \"value-query\": " + "{ \"json-property\": \"department\"," + " \"text\": [\"HR\"]" + "}" + "}" + "]}" + "}").withFormat(JSON); RawStructuredQueryDefinition query = client.newQueryManager().newRawStructuredQueryDefinition(structuredQuery); query.setCollections(qhbTestCollection); Map<String, String[]> matchesByForest = new HashMap<>(); matchesByForest.put("java-unittest-1", new String[] {uri1, uri3, uri4}); matchesByForest.put("java-unittest-2", new String[] {}); matchesByForest.put("java-unittest-3", new String[] {uri2}); runQueryBatcher(moveMgr.newQueryBatcher(query), query, matchesByForest, 17, 99); }