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!
How to use ExamineManager in Umbraco 9
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...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.