Specific document types are not in externalIndex
# help-with-umbraco
r
The application is upgraded from Version 7 to Version 13.6.0. Upgrade process is complete and the site is UP and running. Public access is set to a node. The node and its children node are not available in External index, but it is in internal index. __NodeTypeAlias:havn3 in external index is empty. Document count confirms that the havn3 nodes are included. What could be the issue for not having specific documenttypes in external search index https://cdn.discordapp.com/attachments/1339900678537216050/1339900678729896038/image.png?ex=67b0673f&is=67af15bf&hm=a08da288259a2a08165b88872fbe5b8861c92c53273194e2ceb2a3e7c5ab9160&
d
Hi there, by default, content with public access configured are not indexed. As per your screenshot: "SupportProtectedContent" is false
r
Thanks D_Inventor. I added custom external Index (reference took from Mike Chambers post) and enabled SupportProtectedContent. Havn3 nodes are appearing in External Index. public class ProtectedContentIndexOptions : IConfigureNamedOptions { public readonly IPublicAccessService _publicAccessService; public ProtectedContentIndexOptions(IPublicAccessService publicAccessService) { _publicAccessService = publicAccessService; } [Obsolete("Update when Umbraco Core ContentValueSetValidator is updated")] public void Configure(string? name, LuceneDirectoryIndexOptions options) { switch (name) { case Constants.UmbracoIndexes.ExternalIndexName: options.Validator = new ContentValueSetValidator(true, true, _publicAccessService, null); break; } } // Part of the interface, but does not need to be implemented for this. public void Configure(LuceneDirectoryIndexOptions options) { throw new System.NotImplementedException("This is never called and is just part of the interface"); } }
a
(For easier code reading, please add three tildes in front, and at the and of the code. So ` times 3)
Copy code
Then you get a nice formatted piece of code, increasing readability by alot
r
Thanks for the tips. Is there any way to edit the title? I wanted to add "SOLVED" in the title after I got a solution for my post.
9 Views