fix date len check in search query
limit autocomplete search results to 20