add cql query to hook
Merge branch 'feature/bug_17914_searchhistory_missing_params' into develop