web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Exclude Webpages from Portal Search Results in Enhanced Data Model

(4) ShareShare
ReportReport
Posted on by 24
Hi,
I’m running into an issue with the portal search functionality on Power Pages using  Enhanced Data Model. 

We have configured our search query to only include the Knowledge Base entity.
 


However, when users select the “All” option in the portal’s search filter, the results still include Web Pages (from the Site Component table).


If we change the filter from “All” to “Knowledge Article,” only the correct results from the Knowledge Base are displayed, as expected.



It seems that the Site Component table (which contains web pages) is managed and non-editable, so we’re unable to modify or remove its Quick Find view to prevent these pages from being indexed in search.

Is there any way to exclude the Site Component table (Web Pages) from being indexed or included in the portal search results, given that the table is managed and non-editable?
Alternatively, is there a recommended approach to ensure the “All” filter only searches within specified entities like Knowledge Articles?
I have the same question (0)
  • DAnny3211 Profile Picture
    11,376 on at
    Exclude Webpages from Portal Search Results in Enhanced Data Model

    Hi,

    Thanks for your question! When using Power Pages with the Enhanced Data Model, excluding specific webpages from portal search results can be tricky, especially when customizing the Search/Query site setting.

    From your configuration:

    Value: +!@{Query}_title!@{Query}_logicalnameknowledgearticle=0.9

    It looks like you're correctly targeting the Knowledge Base (knowledgearticle) entity. However, if you're still seeing other webpages in the search results, here are a few things to check:

    1. Confirm Entity Scope: Make sure that the search is truly limited to the knowledgearticle entity. You might need to explicitly exclude other entities like webpage or adx_webpage.

    2. Use Negative Boosting or Filters: You can try adding a negative boost or exclusion logic in the query string. For example:

    +!@{Query}_title!@{Query}_logicalnameknowledgearticle=0.9 -logicalname:adx_webpage

    1. Check Site Settings: Ensure that no other site settings (like Search/Filter) are overriding or expanding the scope of your query.

    2. Portal Cache: After making changes, clear the portal cache or restart the portal to ensure the new settings are applied.

    3. Advanced Search Configuration: If needed, consider using custom Liquid templates or JavaScript to further refine search behavior on the front end.

    Let me know if this helps, and please mark the response as helpful if it answered your question.

    Best regards!


     
  • Verified answer
    AM-07081151-0 Profile Picture
    9 on at
    Exclude Webpages from Portal Search Results in Enhanced Data Model
    Hi,
     
    I encountered a similar issue and tried everything (set Exclude From Search on all my Web Pages, changed the Search/IndexQueryName, etc). Eventually I logged a ticket with Microsoft, who advised that, when using the Enhanced Data Model, webpage search results will always be included by default. The only way to exclude them is adding the Site Setting: "Search/EnabledForEnhancedDataModel" and setting it to "false".
     
    I have not been able to find any reference to the Site Setting anywhere online, but it worked immediately in my case!
     
     
  • RR-03020736-0 Profile Picture
    24 on at
    Exclude Webpages from Portal Search Results in Enhanced Data Model
    Thanks for the site setting. This has worked for me. 
    Cheers!!!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > Microsoft Dynamics 365 | Integration, Dataverse, and general topics

#1
Sahan Hasitha Profile Picture

Sahan Hasitha 242

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 85 Super User 2025 Season 2

#3
Sohaib Cheema Profile Picture

Sohaib Cheema 72 User Group Leader

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans