added query that works to docs of handle_search for dates