I am having some trouble figuring out how to search for media with Epi Find. I have a typed search for pages, which is working fine. I have also managed to index blocks and media, and I get page hits when I search for blocks.
What I want, is to be able to search for files that are published in a page or block, and present the files as search hits, on the same level as page hits.
Is this possible?
I have an item in the find index which is of type GenericMedia (which inherits MediaData), but when I try to search for it, I get no results:
var mediaResult = findClient.Search<GenericMedia>().GetContentResult();
Can you try a full re-index?
Does it work in the assets pane in the CMS?
Can you make sure you are not setting conventions to disable MediaData or GenericMedia from being indexed
.ShouldIndex(x => false);
No, I actually have this:
ContentIndexer.Instance.Conventions.ForInstancesOf<GenericMedia>().ShouldIndex(x => true);
And the documents are being indexed. I see them in Find -> Overview -> Explore. They are indexed with type "GenercMedia".
I see that they don't show up if I search in assets pane either.
It seems to have been a corrupt find index. My developer index expired, and when I created a new one, it started working. The find indexes have been unstable lately.