Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Smart Search : disable urls View modes: 
User avatar
Member
Member
efusien - 11/3/2010 8:18:10 AM
   
Smart Search : disable urls
Hello,

I'm using Smart Search web part with index (see tutorial : Kentico Smart Search tutorial)

When I'm searching "mySite" in keywords box, some results are :

- http://www.mySite.com/en/home-page.aspx
- http://www.mySite.com/en/contact-page.aspx
- http://www.mySite.com/en/search-page.aspx

Why Kentico is indexing the page URL ?
How to disable it ?

User avatar
Kentico Consulting
Kentico Consulting
kentico_mirekr - 11/4/2010 8:16:11 AM
   
RE:Smart Search : disable urls
Hi,

Smart search module is definitely not indexing domain name of your web site, so it might be possible that there is some text with "mySite" in some of your document fields (or document content) or maybe there are some absolute links (relative links are with "~", example: ~/somelink.aspx) in founded documents which do have "mySite" text in it.

Best regards,
Miroslav Remias.

User avatar
Member
Member
efusien - 11/4/2010 8:22:57 AM
   
RE:Smart Search : disable urls
Ok, thanks for your answer.

But why Kentico put the keyword "mySite" in bold in the path URL if not use for the search ? There is a confusing, isn't it ?

User avatar
Kentico Consulting
Kentico Consulting
kentico_mirekr - 11/8/2010 3:42:04 PM
   
RE:Smart Search : disable urls
Hi,

I’m sorry, but I do not understand what is wrong here. You have full control of what is displayed in smart search result in your smart search result transformation. Default Kentico CMS smart search transformation (you can change it according your needs) contains following transformation code which is responsible for returning the URL to page/document which contains searched word:

<span style="color: #008000">
<%# SearchHighlight(SearchResultUrl(true),"<strong>","</strong>")%>
</span>


SearchResultUrl method returns absolute URL in case the input parameter to this function is true (your case).

SearchHighlight method highlights the search word in the resolved URL (relative or absolute), so if you search for mySite and some of your documents are found and at the same time your domain name is mySite you will end up with the behavior which you described.

Best regards,
Miroslav Remias.