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?
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?
is working on a reply...