Commit a1a834f6 authored by Marc Gravell's avatar Marc Gravell

fix #829

parent 630dc707
......@@ -384,7 +384,7 @@ public async Task<long> CountSuggestionsAsync()
/// <returns>the current size of the suggestion dictionary.</returns>
public long AddSuggestion(string value, double score, bool increment = false)
{
object args = increment
object[] args = increment
? new object[] { _boxedIndexName, value, score, "INCR".Literal() }
: new object[] { _boxedIndexName, value, score };
return (long)DbSync.Execute("FT.SUGADD", args);
......@@ -399,7 +399,7 @@ public long AddSuggestion(string value, double score, bool increment = false)
/// <returns>the current size of the suggestion dictionary.</returns>
public async Task<long> AddSuggestionAsync(string value, double score, bool increment = false)
{
object args = increment
object[] args = increment
? new object[] { _boxedIndexName, value, score, "INCR".Literal() }
: new object[] { _boxedIndexName, value, score };
return (long)await _db.ExecuteAsync("FT.SUGADD", args).ConfigureAwait(false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment