Skip to content

Commit

Permalink
Fix default dialect settings (#374)
Browse files Browse the repository at this point in the history
default dialect setting
  • Loading branch information
atakavci authored Jan 23, 2025
1 parent c5abd3d commit 9634fb0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/NRedisStack/Search/SearchCommands.cs
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ public InfoResult Info(RedisValue index) =>
[Obsolete("Consider using ProfileOnSearch with Redis CE 8.0 and later")]
public Tuple<SearchResult, Dictionary<string, RedisResult>> ProfileSearch(string indexName, Query q, bool limited = false)
{
setDefaultDialectIfUnset(q);
return _db.Execute(SearchCommandBuilder.ProfileSearch(indexName, q, limited))
.ToProfileSearchResult(q);
}
Expand Down
2 changes: 2 additions & 0 deletions src/NRedisStack/Search/SearchCommandsAsync.cs
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,7 @@ public async Task<InfoResult> InfoAsync(RedisValue index) =>
[Obsolete("Consider using ProfileOnSearchAsync with Redis CE 8.0 and later")]
public async Task<Tuple<SearchResult, Dictionary<string, RedisResult>>> ProfileSearchAsync(string indexName, Query q, bool limited = false)
{
setDefaultDialectIfUnset(q);
return (await _db.ExecuteAsync(SearchCommandBuilder.ProfileSearch(indexName, q, limited)))
.ToProfileSearchResult(q);
}
Expand All @@ -179,6 +180,7 @@ public async Task<Tuple<SearchResult, ProfilingInformation>> ProfileOnSearchAsyn
[Obsolete("Consider using ProfileOnSearchAsync with Redis CE 8.0 and later")]
public async Task<Tuple<AggregationResult, Dictionary<string, RedisResult>>> ProfileAggregateAsync(string indexName, AggregationRequest query, bool limited = false)
{
setDefaultDialectIfUnset(query);
return (await _db.ExecuteAsync(SearchCommandBuilder.ProfileAggregate(indexName, query, limited)))
.ToProfileAggregateResult(query);
}
Expand Down

0 comments on commit 9634fb0

Please sign in to comment.