updated comments in create_search_query