Search - Exclude specific attachments

Sylvain C. asked on January 9, 2020 23:16

By default, all my PDFs are searchable and stored in database. However, I would like to prevent specific PDfs to be searchable.

If I add them to pages for which I have checked the 'Exclude from search', will it be enough or is it only for content related to that page and not for its associated attachments?

When is the search index built? Each time a new attachment is loaded?

Thank you for your feedback

Sylvain

Recent Answers


Roman Hutnyk answered on January 10, 2020 08:52

I believe excluding from search should be enough.

Search index is built once (unless you manually trigger re-build) and updated any time you update content.

0 votesVote for this answer Mark as a Correct answer

Keio Kwan answered on January 14, 2020 10:16 (last edited on January 14, 2020 10:22)

Hi Sylvain, if you are talking about the Exclude from Search checkbox at Navigation tab > Search & SEO of pages module, you should be on the wrong spot. That checkbox is for SEO use only.

If you want to exclude the specific node, you should update your search index > exclude scope > add exclude by selecting the node.

Also, each smart search index will be adding item upon the node published after when all index scope matched. If you does not want to index/process any logged search tasks after it logged immediately, you can apply appSettings at web config CMSProcessSearchTasksByScheduler set to true, then update the scheduled task Execute local search index execute frequency.

In addition, you for large attachments, you can ignore to index them if you have enough other description fields for your index use. Update web config appSettings CMSSearchMaxAttachmentSize to avoid the large attachment kill your index process because of out of memory. also, CMSSearchDetectTextEncoding can help improve indexing PDF files if any file the encoding is using other than UTF-8.

for more information about search settings by web config, please see Smart search settings.

System will not auto rebuild index unless you build a custom scheduled task to do.

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.