public QueryResult Query(string index, IndexQuery query, string[] includes = null, bool metadataOnly = false, bool indexEntriesOnly = false) { try { return(AsyncHelpers.RunSync(() => asyncServerClient.QueryAsync(index, query, includes, metadataOnly, indexEntriesOnly))); } catch (Exception e) { if (e is ConflictException) { throw; } throw new InvalidOperationException("Query failed. See inner exception for details.", e); } }