Add method to extract time range from search query