ToElasticSearchQuery is now ToQueryInfo and returns Uri as well.