Prevent indexing on specific document in FIND?

Vote:
 

The business wants to post a PDF on our public website so another part of the business  can have an unauthenticated link to instructions for external contractors that don't have access to our systems.

Both them and the owners of the website prefer it doesn't show up in search results.   Is there a way to prevent a file from being indexed??

In other CMS tools I've used the search will not index any file that is not linked from content pages but this obviously isn't how FIND works.

#280123
May 10, 2022 14:40
Vote:
 

Thanks!,

Is your solution JUST for pages and not specifically for a PDF file as required for my implementation?

#280212
May 12, 2022 0:38
Vote:
 

Hey 

This will also work with Media type so just add this checkbox on your medaitype

[Display(
GroupName = Global.GroupNames.MetaData,
Order = 100)]
[CultureSpecific]
public virtual bool DisableIndexing { get; set; }

Like this- 

namespace Test.Models.Media
{
    [ContentType(DisplayName = "PdfFile", GUID = "458d11ea-4aaf-4847-a343-abc0507ce301", Description = "")]
    [MediaDescriptor(ExtensionString = "pdf,doc,docx,rtf,xlsx,xls,csv,txt,json")]
    public class DocumentFile : MediaData
    {
        [Display(Name = "Title", Order = 1, GroupName = SystemTabNames.Content)]
        public virtual string Title { get; set; }

        [UIHint(UIHint.Textarea)]
        [Display(Name = "Description", Order = 2, GroupName = SystemTabNames.Content)]
        public virtual string Description { get; set; }
        
       [Display(
       GroupName = Global.GroupNames.MetaData,
       Order = 100)]
      public virtual bool DisableIndexing { get; set; }
    }
}
#280215
May 12, 2022 6:40
Vote:
 

Thanks for this interesting information!

#280457
May 17, 2022 13:18
Vote:
 

useful information  [url=https://www.google.com/]![/url]

#281258
Edited, Jun 02, 2022 7:41
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.