Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Smart Search - exclude page items according to "show in site map" or "show in navigation" View modes: 
User avatar
Member
Member
john.banning-springbox - 5/6/2010 5:02:57 PM
   
Smart Search - exclude page items according to "show in site map" or "show in navigation"
I would like to exclude page (meun items) from the Smart Search results depending if they have the "show in sitemap" and/or "show in navigation" disabled. Currently regardless of the value of these checkboxes pages are returned.

Has anyone done this before. It seems like this would just be as adding to the WHERE clause.

Any help is appreciated.
Thanks in advance.
John

User avatar
Kentico Consulting
Kentico Consulting
kentico_mirekr - 5/7/2010 2:05:25 AM
   
RE:Smart Search - exclude page items according to "show in site map" or "show in navigation"
Hi,

You can use following condition in “Search condition” property of your smart search result web part:

Search condition: -DocumentMenuItemHideInNavigation:True

This condition will display only documents, which are using “Show in navigation” option (it is set to true - checked). The same applies to DocumentShowInSiteMap document field.

Best regards,
Miroslav Remias.

User avatar
Member
Member
gregg.nakamura-gmail - 8/26/2011 9:35:30 AM
   
RE:Smart Search - exclude page items according to "show in site map" or "show in navigation"
Is it possible to take this one step further and add a search condition that will return results based on a document's name or alias path?

The reason I ask is that we have thank you pages throughout a site, all named "thank-you" that we would like to remove from the search results.

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 8/29/2011 7:39:22 AM
   
RE:Smart Search - exclude page items according to "show in site map" or "show in navigation"
Hi,

yes it is possible. You need to set the DocumentName field as Searchable.

In the Site Manager->Development-> System Tables -> COM.SKU -> Search fields you can check this field.

Then you can use:

-documentname:thank-you

and the thank-you document should be excluded from the result.

Best regards,
Ivana Tomanickova