@@ -685,26 +685,26 @@ public static Dictionary<string, RedisResult> ToStringRedisResultDictionary(this
685685 return dict ;
686686 }
687687
688- public static Tuple < SearchResult , Dictionary < string , RedisResult > > ToProfileSearchResult ( this RedisResult result , Query q )
688+ public static Tuple < SearchResult , ProfilingInformation > ToProfileSearchResult ( this RedisResult result , Query q )
689689 {
690690 var results = ( RedisResult [ ] ) result ! ;
691691
692692 var searchResult = results [ 0 ] . ToSearchResult ( q ) ;
693- var profile = results [ 1 ] . ToStringRedisResultDictionary ( ) ;
694- return new Tuple < SearchResult , Dictionary < string , RedisResult > > ( searchResult , profile ) ;
693+ var profile = new ProfilingInformation ( results [ 1 ] ) ;
694+ return new Tuple < SearchResult , ProfilingInformation > ( searchResult , profile ) ;
695695 }
696696
697697 public static SearchResult ToSearchResult ( this RedisResult result , Query q )
698698 {
699699 return new SearchResult ( ( RedisResult [ ] ) result ! , ! q . NoContent , q . WithScores , q . WithPayloads /*, q.ExplainScore*/ ) ;
700700 }
701701
702- public static Tuple < AggregationResult , Dictionary < string , RedisResult > > ToProfileAggregateResult ( this RedisResult result , AggregationRequest q )
702+ public static Tuple < AggregationResult , ProfilingInformation > ToProfileAggregateResult ( this RedisResult result , AggregationRequest q )
703703 {
704704 var results = ( RedisResult [ ] ) result ! ;
705705 var aggregateResult = results [ 0 ] . ToAggregationResult ( q ) ;
706- var profile = results [ 1 ] . ToStringRedisResultDictionary ( ) ;
707- return new Tuple < AggregationResult , Dictionary < string , RedisResult > > ( aggregateResult , profile ) ;
706+ var profile = new ProfilingInformation ( results [ 1 ] ) ;
707+ return new Tuple < AggregationResult , ProfilingInformation > ( aggregateResult , profile ) ;
708708 }
709709
710710 public static AggregationResult ToAggregationResult ( this RedisResult result , AggregationRequest query )
0 commit comments