Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Smart Search Result Document is not a Page View modes: 
User avatar
Member
Member
PeterPC - 9/28/2011 10:11:43 PM
   
Smart Search Result Document is not a Page
Hi,

If a keyword search returns a document that is not a page, it will not render properly when the result is clicked.

Is there a way to redirect all documents of that type, without having to manually redirect them individually?

Thanks

User avatar
Member
Member
kentico_michal - 10/2/2011 11:46:05 PM
   
RE:Smart Search Result Document is not a Page
Hello,

Could you please describe the issue in more detail?

What do you mean by "it will not render properly when the result is clicked"?

What is the search transformation you are using?

Thank you.


Best regards,
Michal Legen

User avatar
Member
Member
PeterPC - 10/3/2011 8:47:02 AM
   
RE:Smart Search Result Document is not a Page
Hi,

Let me see if I can explain better...

For example, the document that is returned as a search result is not a page - it is only used within a repeater on it's parent page. Therefore, when a user lands on the document it does not show anything as it does not have a template to show anything.

So I'm trying to manke the search result URL point to the document's parent page. The parent page has the repeater which renders it's child documents.

Right now I am using the CMS.Root.SmartSearchResults transformation.

Sorry of thats confusing!

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 10/3/2011 9:12:25 AM
   
RE:Smart Search Result Document is not a Page
Hi,


Thank you for your explanation.

You have several choices now:

1. You can set up a redirection on those pages to the parent document (you can use Random redirection web part with one URL).

2. You can use the same template or develop a custom one for those documents.

3. You can exclude the document type of those documents from the index. However, then it will not find the parent if you search for the child document's text. It will be possible in the version 6.0 (it will index the whole output HTML of document including repeaters). In the version 5.5 R2 you can save the keywords of children to a custom hidden document type field but it needs additional coding to synchronize the fields and the child documents' content.


Best regards,
Helena Grulichova

User avatar
Certified Developer v7
Certified  Developer v7
dion.tsai-adrenalinmedia.com - 6/19/2012 2:36:07 AM
   
RE:Smart Search Result Document is not a Page
Can you describe how you can achieve below? Thank you.

It will be possible in the version 6.0 (it will index the whole output HTML of document including repeaters)

User avatar
Kentico Support
Kentico Support
kentico_zdenekc - 6/19/2012 3:18:12 AM
   
RE:Smart Search Result Document is not a Page
Hi,

In the version 6.0, there's a new index available, called Documents crawler.

Documents crawler type indexes directly parse the HTML output generated by documents, which means that all text located on or associated with a document is searchable.
This information and more details can be found in the Developer's Guide article.

Regards,
Zdenek