The documention says there are no breaking changes in the 7.5 Find release but when I upgrade I get a few errors.
I used to be able to do:
SearchClient.Instance.Conventions.UnifiedSearchRegistry.Add(typeof(UnifiedFile));FileIndexer.Instance.Conventions.ShouldIndexVPPConvention = new VisibleInFilemanagerVPPIndexingConvention();ContentIndexer.Instance.Conventions.EnablePageFilesIndexing();
But ShouldIndexVPPConvention, VisibleInFilemanagerVPPIndexingConvention and EnablePageFilesIndexing are all gone(?).
Are these renamed, moved or do I need to do some other type of refactoring? If so, how would I begin to implement the same behaviour?
This is now part of the legacy EPiServer Find dll. You can download it here: http://world.episerver.com/Download/Items/EPiServer-Find/Download-EPiServer-75-Find/.
Thank you,That solved the problem of ShouldIndexVPPConvention/VisibleInFilemanagerVPPIndexingConvention.However I still can't seem to find EnablePageFilesIndexing.Where can I find that?
In 7.5 we do not have files as we did before instead we have Media as content. Which means that it is treated like all other content types and will be indexed without saying something extra that is why that is removed.
That makes sense.Thank you both for a great explanation!I ended up not using the legacy file at all, better stick with to the new ways of doing stuff. :)