LuceneDirectoryIndexOptions?

Hi,
We did a upgrade from 13 to 17, we added this custom IndexOption to add extra member properties to the index:
```
public class ConfigureMemberIndexOptions : IConfigureNamedOptions
{
public void Configure(string name, LuceneDirectoryIndexOptions options)
{
if (name.Equals(Indexes.MembersIndexName, StringComparison.Ordinal))
{
options.Validator = new MemberValueSetValidator(null, null, new
{ “id”, “email”, “lastname”, “firstname”, “nodeName”, “company”, “postalCode”, “city”, “country” }, null);
}
}

public void Configure(LuceneDirectoryIndexOptions options) { }

}
```

Its hit on startup, but does not change the membersindex it does not get the extra properites, if we rebuild the index its not even hit.

What to do ?

Found old posts with the Composer : [ComposeAfter(typeof(global::Umbraco.Cms.Infrastructure.Examine.AddExamineComposer))]

Added that and its working!

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.