From 06758881b48408698d1ea4870bd1bfc5f2890e58 Mon Sep 17 00:00:00 2001 From: atakavci Date: Thu, 16 Jan 2025 14:36:16 +0300 Subject: [PATCH] default dialect setting --- src/NRedisStack/Search/SearchCommands.cs | 1 + src/NRedisStack/Search/SearchCommandsAsync.cs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/src/NRedisStack/Search/SearchCommands.cs b/src/NRedisStack/Search/SearchCommands.cs index 6d9a64e6..30c96c40 100644 --- a/src/NRedisStack/Search/SearchCommands.cs +++ b/src/NRedisStack/Search/SearchCommands.cs @@ -133,6 +133,7 @@ public InfoResult Info(RedisValue index) => /// 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 0da1c1f0..d219f44c 100644 --- a/src/NRedisStack/Search/SearchCommandsAsync.cs +++ b/src/NRedisStack/Search/SearchCommandsAsync.cs @@ -164,12 +164,14 @@ public async Task InfoAsync(RedisValue index) => /// public async Task>> ProfileSearchAsync(string indexName, Query q, bool limited = false) { + setDefaultDialectIfUnset(q); return (await _db.ExecuteAsync(SearchCommandBuilder.ProfileSearch(indexName, q, limited))) .ToProfileSearchResult(q); } /// public async Task>> ProfileAggregateAsync(string indexName, AggregationRequest query, bool limited = false) { + setDefaultDialectIfUnset(query); return (await _db.ExecuteAsync(SearchCommandBuilder.ProfileAggregate(indexName, query, limited))) .ToProfileAggregateResult(query); }