You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using NRediSearch and StackExchange.Redis to work with Redis for my ASP.NET project but I can't set ReturnField for my Query.
Here is my code:
var query = new Query($"@plain_text:{{{SearchText}}}");
query.SortBy = "offer_id";
query.SortAscending = false;
query.Limit((Page-1) * PageSize, PageSize);
query.ReturnFields(new FieldName("$.id", "id"));
var rs = (await _searchClient.SearchAsync(query)).Documents;
plz help
The text was updated successfully, but these errors were encountered:
I am using NRediSearch and StackExchange.Redis to work with Redis for my ASP.NET project but I can't set ReturnField for my Query.
Here is my code:
var query = new Query($"@plain_text:{{{SearchText}}}");
query.SortBy = "offer_id";
query.SortAscending = false;
query.Limit((Page-1) * PageSize, PageSize);
query.ReturnFields(new FieldName("$.id", "id"));
var rs = (await _searchClient.SearchAsync(query)).Documents;
plz help
The text was updated successfully, but these errors were encountered: