pzreq.getRecord().removeParametersInState(); \r
pzreq.getShow().setParameterInState(new CommandParameter("start","=",0)); \r
logger.debug(Utils.objectId(this) + " is searching using "+pzreq.getCommand("search").getUrlEncodedParameterValue("query"));\r
+ searchClient.setSearchCommand(pzreq.getCommand("search"));\r
doCommand("search");\r
}\r
}\r
\r
protected void handleQueryStateChanges (String commands) {\r
if (stateMgr.hasPendingStateChange("search") && hasQuery()) { \r
- logger.info("Triggered search: Found pending search change, doing search before updating " + commands); \r
+ logger.info("Triggered search: Found pending search change [" + pzreq.getCommand("search").toString() + "], doing search before updating " + commands); \r
doSearch();\r
} \r
if (stateMgr.hasPendingStateChange("record") && ! commands.equals("record")) { \r
*/\r
protected ResponseDataObject doCommand(String commandName) {\r
ResponseDataObject responseObject = null; \r
- // logger.debug(pzreq.getCommand(commandName).getEncodedQueryString() + ": Results for "+ pzreq.getCommand("search").getEncodedQueryString());\r
+ logger.info("Request "+commandName + ": "+ pzreq.getCommand("search").toString());\r
Pazpar2Command command = pzreq.getCommand(commandName);\r
long start = System.currentTimeMillis();\r
HttpResponseWrapper commandResponse = searchClient.executeCommand(command);\r