Marketing DevOps System Administrator Jahia 8.2

How to exclude a page from the search?

Question

How to exclude a page from the search?

Answer

If you use Augmented Search, you can edit the page and activate the option Remove from augmented search results (cf this documentation): 2025-08-22_14-20.png

If you don't use it and want to exclude a page from a search with the Lucene framework, you'll have to: 

  • copy the file JAHIA_HOME/digital-factory-data/repository/indexing_configuration.xml to JAHIA_HOME/digital-factory-config/jahia/
  • Edit it to exclude a specific node
    <exclude nodetype="jnt:page" path="^/sites/ACMESPACE/home/nonIndexedPage$" isRegexp="true"/>
  • Add the property jahia.jackrabbit.searchIndex.workspace.config with the value JAHIA_HOME/digital-factory-config/jahia/ (do not forget to replace JAHIA_HOME) in the file JAHIA_HOME/digital-factory-config/jahia/jahia.properties
  • reindex your Jahia

If you want to exclude a page from search results in a search engine, you can use the module robots.txt (cf this documentation) and, also, exclude the page from your sitemap (cf this documentation)