Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Search Key Index View modes: 
User avatar
Member
Member
BRogers - 3/29/2012 2:39:22 PM
   
Search Key Index
Is there a way to provide a key match index for search results? For example, if I search “legal” on my website I want to be able to specify a specific document (webpage or file) of my choosing to be the first search result on the page.

I have used the Google search appliance and we had the option to tag a webpage to the search results for specific keywords that we specified.

Also can Kentico search inside pdfs to find the related content results. For example, if I search “legal” on my website it will bring up the webpages with legal and it will bring any pdf or word document that has “legal” inside the content of the document.

Thank you

User avatar
Kentico Consulting
Kentico Consulting
kentico_mirekr - 4/2/2012 12:47:08 AM
   
RE:Search Key Index
Hi,

Regrettably, there is no such functionality in Kentico CMS like you described. By default, search results are ordered by Lucene .NET relevance (score), but you can order the search results by some custom logic or custom field in search result web part settings.

You can either use some general document field (from CMS_Tree or CMS_Document tables) or document type field (in this case all document types involved in the search results would need to have field with the same name, so that you can order them based on this field) where you can keep your expressions like "legal".

However, when ordering according to custom field or some general field, you will lose the relevance (score) order.

Maybe it might be worth to reorder the results programmatically in the smart search result control file (~\CMSModules\SmartSearch\Controls\SearchResults.ascx.cs) where you can access any document information returned by smart search and based on such information move the document which you would like to have as the first one in the list in the resulting DataSet.

Searching in document attachments (pdf, txt, docs files etc.) is supported as described in the documentation: http://devnet.kentico.com/docs/5_5R2/devguide/searching_attachments.htm

The only requirement here is that the attachments need to be stored on database level and SQL Server needs to be configured to use full text search over CMS_Attachment table (AttachmentBinary column).

Basically, if you would follow the documentation, you will achieve what you are looking for.

Thanks,
Miro