Customizing / Filtering the Search Result

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
5/12/2011 4:37:15 AM
Gravatar
Total Posts 70

Customizing / Filtering the Search Result

Joe,

Hi.

I want some content module/feature not to be returned when searching.

I found a setting in the web.config <add key="SearchableFeatureGuidsToExclude value="">.

Am I correct the value is the ModuleID of the content module? For example when I edit a content is has the mid=603.

I want to restrict these because some of my content module contains javascript code that when searching the user can see my code on the result set.

I noticed some results does not contain search result description. Can I restrict this also?

You help is greatly appreciated.

Thank you.

Cesse

5/12/2011 9:36:17 AM
Gravatar
Total Posts 2202

Re: Customizing / Filtering the Search Result

Hi,

That setting is for excluding entire features from the search index. In other words, if you don't want any blogs to be indexed, you would put the feature GUID in that setting.

If you don't want a particular instance of a feature to be included in the search index, you can remove the check from the "Include In Search Index?" option in the module settings.

HTH,
Joe D.

5/12/2011 10:48:13 PM
Gravatar
Total Posts 70

Re: Customizing / Filtering the Search Result

Hi Joe,

Sorry, but I can't find the Include In Search Index? button option in the module settings. 

I try to find it in the feature/instance settings but there was no settings for the Search Index.

Your guidance please.

 

You help is greatly appreciated.

 

Thank you.

5/13/2011 8:14:48 PM
Gravatar
Total Posts 2202

Re: Customizing / Filtering the Search Result

Hi,

It is under the "General" tab in the module instance settings.

HTH,
Joe D.

5/14/2011 7:24:53 AM
Gravatar
Total Posts 18439

Re: Customizing / Filtering the Search Result

This ability to exclude specific items from search is only available for the Html content feature, not all searchable features support that option. It will only show up in the ModuleSettings.aspx page for features that support that option.

Best,

Joe

6/13/2011 11:35:30 PM
Gravatar
Total Posts 70

Re: Customizing / Filtering the Search Result

Hello Joe,

How will I determine the featureGUID for List/Links?

I'm trying to exclude these feature on my search results.

 

 

Thanks.

 

Cesse

6/14/2011 2:50:31 PM
Gravatar
Total Posts 18439

Re: Customizing / Filtering the Search Result

You can find the featureGuid either in the database or in the FeatureDefinition files under /Setup/applications/[appname]/FeatureDefinitions

where the [appname] in this case would be linksmodule

Hope that helps,

Joe

6/15/2011 2:10:16 AM
Gravatar
Total Posts 70

Re: Customizing / Filtering the Search Result

Joe,

I have content features published on right pane of every pages of my site. 

When I search keyword that matched on the item located on the right pane, it renders results of all pages it was displayed. I want to omit redundancy. How will I do this?

Your great help is appreciated.

 

Thanks.

 

Cesse 

You must sign in to post in the forums. This thread is closed to new posts.