SharePoint 2016: the item and all items under it will not be crawled.

Error:
https://portal.contoso.com/Style Library/Forms/AllItems.aspx. This item and all items under it will not be crawled because the owner has set the NoCrawl flag to prevent it from being searchable ( SearchID = 2CE6F5BA-A263-4B11-94F3-E2B60582174C )

Resolution:
rowse to https://portal.contoso.com/Style Library/Forms/AllItems.aspx -> Go to Library Settings of the Library on the ribbon -> Choose Advanced Settings to check if the items in the library are allowed to appear in search results. If not, check Yes and choose to Reindex Document Library and run full crawl.