Skip to content

Commit 0675888

Browse files
committed
default dialect setting
1 parent 00c7895 commit 0675888

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

src/NRedisStack/Search/SearchCommands.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,7 @@ public InfoResult Info(RedisValue index) =>
133133
/// <inheritdoc/>
134134
public Tuple<SearchResult, Dictionary<string, RedisResult>> ProfileSearch(string indexName, Query q, bool limited = false)
135135
{
136+
setDefaultDialectIfUnset(q);
136137
return _db.Execute(SearchCommandBuilder.ProfileSearch(indexName, q, limited))
137138
.ToProfileSearchResult(q);
138139
}

src/NRedisStack/Search/SearchCommandsAsync.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,12 +164,14 @@ public async Task<InfoResult> InfoAsync(RedisValue index) =>
164164
/// <inheritdoc/>
165165
public async Task<Tuple<SearchResult, Dictionary<string, RedisResult>>> ProfileSearchAsync(string indexName, Query q, bool limited = false)
166166
{
167+
setDefaultDialectIfUnset(q);
167168
return (await _db.ExecuteAsync(SearchCommandBuilder.ProfileSearch(indexName, q, limited)))
168169
.ToProfileSearchResult(q);
169170
}
170171
/// <inheritdoc/>
171172
public async Task<Tuple<AggregationResult, Dictionary<string, RedisResult>>> ProfileAggregateAsync(string indexName, AggregationRequest query, bool limited = false)
172173
{
174+
setDefaultDialectIfUnset(query);
173175
return (await _db.ExecuteAsync(SearchCommandBuilder.ProfileAggregate(indexName, query, limited)))
174176
.ToProfileAggregateResult(query);
175177
}

0 commit comments

Comments
 (0)