Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Return Field not working on C# #29

Open
vangxitrum opened this issue Sep 11, 2022 · 0 comments
Open

Return Field not working on C# #29

vangxitrum opened this issue Sep 11, 2022 · 0 comments

Comments

@vangxitrum
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant