Search result description too short

This is the place to report bugs and get support. When posting in this forum, please always provide as much detail as possible.

Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum, do not report it as a bug.

This is the place to report bugs and get support

When posting in this forum, please try to provide as many relevant details as possible. Particularly the following:

  • What operating system were you running when the bug appeared?
  • What database platform is your site using?
  • What version of mojoPortal are you running?
  • What version of .NET do you use?
  • What steps are necessary to reproduce the issue? Compare expected results vs actual results.
Please do not report problems with a custom build or custom code in this forum. If you are producing your own build from the source code and have problems or questions, ask in the developer forum.
This thread is closed to new posts. You must sign in to post in the forums.
4/14/2011 10:49:09 AM
Gravatar
Total Posts 12

Search result description too short

Hi all,

Search result description too short, how to increase number of word in search result description??

Thanks for any help.

4/14/2011 11:56:32 AM
Gravatar
Total Posts 18439

Re: Search result description too short

The search result is going to show the title of the page or article so the size of that depends on the page or article title.

If you are using a user.config file, then we have default settings already in user.config.sample for search results highlighting which can show a fragment that matched the search, you can control the size of the fragment with this setting:

<add key="SearchResultsFragmentSize" value="300"/> 

We have different defaults in Web.config for backward comaptibility.

If you were not previously using a user.config and therefore not using results highlighting you will need to rebuild the search index after enabling it.

These are the settings that should be in user.config

<add key="DisableSearchFeatureFilters" value="false" />
  <add key="SearchUseBackwardCompatibilityMode" value="false" />
  <add key="EnableSearchResultsHighlighting" value="true" />
  <add key="SearchIncludeModuleRoleFilters" value="true" />

if you override the fragment size you should also put that setting in user.config

See also

Site Search Overview

Rebuilding the Search Index

Hope it helps,

Joe

4/14/2011 10:20:34 PM
Gravatar
Total Posts 12

Re: Search result description too short

It work fine. Thanks a lots.

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