Searching for media

Vote:
 

Hi!

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();
#216194
Jan 29, 2020 14:47
Vote:
 

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 

Something like: 

ContentIndexer.Instance.Conventions
  .ForInstancesOf<MediaData>()
  .ShouldIndex(x => false);
#216197
Jan 29, 2020 15:20
Vote:
 

Hi!

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.

#216226
Jan 30, 2020 8:19
Vote:
 

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.

#216373
Feb 05, 2020 8:07
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.