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 28 posts 160 karma points
    Aug 04, 2022 @ 03:15
    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?

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies