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
Umbraco 9.4.3 search issue #12551
Comments
Hi @pramodbhagat, I hope you're doing well :) I've opened up a PR to fix your issue. In the meantime a workaround would be to not use With your variable name
I hope this still helps, even if it is a little late |
Not too late for me, who also just stumbled across this nasty little bug! This workaround has helped get the site search back up and running without too much fuss though, so thanks for sharing! |
Have also run into this on V10.0.1. TotalCount correct but records always 0. @mathewcare 's workaround worked for me. |
Hi @matthewcare, Thanks for responding and this does work for me. Thanks, |
FYI: This is on the list for HQ to review and merge, thanks @matthewcare for the PR! |
Fixed in #12612 |
Which exact Umbraco version are you using? For example: 9.0.1 - don't just write v9
9.4.3
Bug summary
The Search function doesn't work as it always returns 0
Specifics
Hello,
We're building a new site using Umbraco 9.4.3 and we have identified a bug with below Search function doesn't work.
IEnumerable<PublishedSearchResult> Search(IQueryExecutor query, int skip, int take, out long totalRecords);
totalRecords
gives the correct count but it always return 0 records where as I would have expectedIEnumerable<PublishedSearchResult>
We have tested a fresh DB with Umbraco 9.4.3 and 9.5 and this doesn't work however when I downgrade Umbraco it to 9.3.1 then it works.
Would be good to have a fix or a workaround until we have a fix.
Thanks,
Pramod
Steps to reproduce
With a fresh install of Umbraco 9.4.3 or 9.5 when you call Search function this always returns 0 items where as the out parameter
totalItems
does returns the total item count.Expected result / actual result
I would have expected an
IEnumerable
list ofPublishedSearchResult
as a return type.The text was updated successfully, but these errors were encountered: