diff --git a/src/NRedisStack/Search/SearchCommands.cs b/src/NRedisStack/Search/SearchCommands.cs index 7a362ede..409ba24b 100644 --- a/src/NRedisStack/Search/SearchCommands.cs +++ b/src/NRedisStack/Search/SearchCommands.cs @@ -134,6 +134,7 @@ public InfoResult Info(RedisValue index) => [Obsolete("Consider using ProfileOnSearch with Redis CE 8.0 and later")] public Tuple> ProfileSearch(string indexName, Query q, bool limited = false) { + setDefaultDialectIfUnset(q); return _db.Execute(SearchCommandBuilder.ProfileSearch(indexName, q, limited)) .ToProfileSearchResult(q); } diff --git a/src/NRedisStack/Search/SearchCommandsAsync.cs b/src/NRedisStack/Search/SearchCommandsAsync.cs index 23a24027..2ed0080d 100644 --- a/src/NRedisStack/Search/SearchCommandsAsync.cs +++ b/src/NRedisStack/Search/SearchCommandsAsync.cs @@ -165,6 +165,7 @@ public async Task InfoAsync(RedisValue index) => [Obsolete("Consider using ProfileOnSearchAsync with Redis CE 8.0 and later")] public async Task>> ProfileSearchAsync(string indexName, Query q, bool limited = false) { + setDefaultDialectIfUnset(q); return (await _db.ExecuteAsync(SearchCommandBuilder.ProfileSearch(indexName, q, limited))) .ToProfileSearchResult(q); } @@ -179,6 +180,7 @@ public async Task> ProfileOnSearchAsyn [Obsolete("Consider using ProfileOnSearchAsync with Redis CE 8.0 and later")] public async Task>> ProfileAggregateAsync(string indexName, AggregationRequest query, bool limited = false) { + setDefaultDialectIfUnset(query); return (await _db.ExecuteAsync(SearchCommandBuilder.ProfileAggregate(indexName, query, limited))) .ToProfileAggregateResult(query); }