Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > smart-search View modes: 
User avatar
Member
Member
maggie.nu-gmail - 7/24/2011 8:14:30 AM
   
smart-search
i want to use smart search and filter it with tagid="xxx"
how can i do it ?

example the word "yellow"
and i want only the documents that are taged with this word show up
not those who have yellow in there content

i also have a regular amart search so i cant change the smart search indexing

User avatar
Member
Member
kentico_michal - 7/24/2011 9:44:36 AM
   
RE:smart-search
Hello,

Regarding to tags, this should be the default behavior since document tags are indexed by design. So, you should be able to search for documents entering tag names.

To disable indexing content of documents, you need to exclude all fields you do not want to get indexed (Site manager -> Development -> Document types -> edit document type -> Search fields).
More information about this topic can be found here: Smart search object settings

Best regards,
Michal Legen

User avatar
Member
Member
maggie.nu-gmail - 7/25/2011 2:13:53 AM
   
RE:smart-search
i have 2 kind of searches so i dont want change the smart search object setting
just to add where condition to the results

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 7/26/2011 2:44:14 AM
   
RE:smart-search
Hi,

you would need to create a custom search result of searching only in tags, i.e. customize a standard web part.
To the search string you would need to add automaticaly a condition to search only in DocumentTags.

Example:
If the user would like to search for car and bike, you need to add +DocumentTags:(car bike). See search syntax for more details.

Moreover, the key CMSSearchOnlyWhenContentPresent has to be set to false.

If you need to search only in tags, there is a tag cloud web part. Maybe it could meet your requirement as well.

Best regards,
Ivana Tomanickova