Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Steve Crook 19 posts 130 karma points
    1 week ago
    Steve Crook
    0

    Examine indexes for multi-language site

    I've got a site with many language variations. I need to have one Examine index per language, because each language needs to have a different Lucene analyzer.

    In the Umbraco 10 source, the 3 default indexes (Internal, External and Members) are added during startup via a call to Umbraco.Cms.Infrastructure.Examine.DependencyInjection.AddExamineIndexes. But I need to be able to inspect the languages available in the site during that step so I can add an index for each. In v8 I created the indexes in an IComponent, so I was able to inject IContentService.

    Is it possible to access IContentService during startup under v10 so I can figure out which languages exist?

Please Sign in or register to post replies

Write your reply to:

Draft