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
In my Umbraco dashboard, I can neither find the searchers nor the MediaIndexer. In previous versions, namely v7, they were all there, but not anymore. Could someone please tell me how I can get them back?
Any help would be highly appreciated!
Thanks in advance.
Umbraco 7 doesn't have a MediaIndex by default, so this likely comes from a third party package you may have installed. ExternalIndex contains both content and media.
Since Umbraco 8 was launched, the way you access searchers has changed a bit. In Umbraco 7, all searchers lived at a global level.
While this is still possible with custom searchers, the default searchers now instead live under the individual indexes. This means that if you click on ExternalIndex in your screenshot, the expanded view let's you search directly from the indexer - eg. as shown here:
It works the same way in the code. In order to get a reference to the searcher for the external index, you'd first have to get a reference to the IIndex for the external index, and then call it's GetSearcher method to get the searcher.
Hope that makes sense 😉
Well there is no GetSearcher Method for my IIndex.
I think it's TryGetSearcher
Aight so I only need to use ExternalIndex then?
So I've tried to search through both media and content, but I guess this isn't the way to do it, right?:
Or do I need to create two different "results" variables for media and content?
I think I wasn't clear enough when posting the question. My real goal was to search/index through files and their contents. After some research on the internet, I found the package that would really help me out, and thus help me solve my problem. Thanks for all the replies, I'm grateful for your help!
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted