Portal Engine
Version 2.x > Portal Engine > Exclude item from search View modes: 
User avatar
Member
Member
eric_s - 1/11/2007 7:19:38 PM
   
Exclude item from search
I have the full text search working on SQL 2005, and works great!

However, I have a folder that I am using to store images (jpg, gif, etc...) for some of my content pages. The image files themselves are returned as search results if their name matches the criteria. Is there some way to exclude these image files (and other "resource files") from the results? I really just want my content pages to come back.

User avatar
Guest
admin - 1/20/2007 6:11:06 PM
   
Re: Exclude item from search
Hello,

you can exclude documents or document types from search in Site Manager -> Settings -> Web Site -> Exclude documents/document types from search.

Best Regards,

User avatar
Member
Member
byron-falcon-software - 8/21/2009 9:14:16 AM
   
RE:Re: Exclude item from search
I have tried this approach but the folders are not being excluded from the search.

Is there any more wisdom on this than the documentation.

For example, i want to exclude the Images folder.

Is the syntax this:

/images

or this

/images/%

Neither seems to work so do I need to flush some kind of cache first do I have to be more specific?

User avatar
Kentico Developer
Kentico Developer
kentico_ondrejv - 8/24/2009 8:33:04 AM
   
RE:Re: Exclude item from search
Hello,

I've tried it even in 2.3 version of Kentico CMS and it works as expected. Could you please try to set appropriate site within 'Site Manager -> Settings -> Dropdown -> Web Site'. It's possible that you are inheriting from global settings in your site.

Best regards
Ondrej Vasil

User avatar
Member
Member
byron-falcon-software - 8/24/2009 9:29:43 AM
   
RE:Re: Exclude item from search
Sorry I am in version 4, but it still doesn't work.

I set it globally and the only site on the installation inherits the settings.

There aren't excluded, I have no idea why.

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 8/25/2009 9:44:57 AM
   
RE:Re: Exclude item from search
Hi,

I would like to ask you to post your posts into appropriate version forum to avoid confusion. Thank you.

I have tried it in the 4.0 version and it is working fine (http://devnet.kentico.com/docs/4_0/devguide/search_engine_overview.htm).

I have navigated to Site Manager -> Settings -> selected my site in the drop down list -> Web site -> Exclude documents from search and in this field was this value: /Special-Pages/%;/News/%

So, when I have searched for some words, nothing from the News section was displayed (I have used words which were only in the news section). I have removed the value from the field, saved it and searched again and the change was applied immediately.
Could you please try to restart the application in Site Manager -> Administration -> System and clear the browser cache?

Best Regards,
Juraj Ondrus

User avatar
Member
Member
mjantz-crisisprevention - 6/25/2010 11:30:58 AM
   
RE:Re: Exclude item from search
i am using Kentico 4.1.

i have selected my desired site (i only have 1, but i am not using the "global" option). i have gone to Settings>Web site>"Exclude documents from SQL search" and entered 1 path like this: /Web-Resources/refresh/% and documents in this directory (refresh) keep appearing in my search results. i have cleared my browser cache and re-initialized the browser application. still the results include pages i am trying to exclude.

any ideas?

User avatar
Kentico Support
Kentico Support
kentico_jurajo - 6/29/2010 11:06:53 AM
   
RE:Re: Exclude item from search
Hi,

You should post this into 4.x versions forum group.

Isn't it possible that you are using Smart search and not SQL search? You need to exclude the items from the index. For more details please see http://devnet.kentico.com/docs/devguide/smart_search_creating_index.htm

Best regards,
Juraj Ondrus