Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
So I'm trying to use ExamineManager in Umbraco 9. In previous versions this would work fine:
But in Umbraco 9, it seems to have changed completely. I tried to find some sort of documentation on ExamineManager for Umbraco 9, but I was unsuccessful.
Any help would be highly appreciated. Thanks in advance!
Hi.. In Umbraco 9, you should as a rule of thumb, always inject your dependencies. In this case you need to inject IExamineManager.
I guess the code sample is equal to use IExamineManager.TryGetSearcher("ExternalSearcher").
Examine docs are updated to v2 here: https://shazwazza.github.io/Examine/
Is there a way to do it without injection? I should get the searcher inside a view.
You still has to use injection. In razor views there is a @inject keyword..
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted