Skip to content

Commit

Permalink
Register ConfigureProductIndexOptions with ConfigureOptions
Browse files Browse the repository at this point in the history
  • Loading branch information
marcemarc committed Apr 27, 2023
1 parent 87dc245 commit d9d5756
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Umbraco.Docs.Samples.Web/CustomIndexing/ExamineComposer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,17 @@ namespace Umbraco.Docs.Samples.Web.CustomIndexing
public class ExamineComposer : IComposer
{
public void Compose(IUmbracoBuilder builder)
{
{

builder.Services.AddExamineLuceneIndex<ProductIndex, ConfigurationEnabledDirectoryFactory>("ProductIndex");

builder.Services.ConfigureOptions<ConfigureProductIndexOptions>();

builder.Services.AddSingleton<ProductIndexValueSetBuilder>();

builder.Services.AddSingleton<IIndexPopulator, ProductIndexPopulator>();


}
}
}

0 comments on commit d9d5756

Please sign in to comment.