Multiple Search Results because of Photo Gallery

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.
9/15/2016 2:08:20 PM
Gravatar
Total Posts 28

Multiple Search Results because of Photo Gallery

  • mojoPortal Version: 2.4.0.2 MSSQL
  • Operating System: Microsoft Windows NT 6.3.9600.0
  • ASP.NET Info: v4.0.30319 Running in Full Trust

When I perform a simple on-site search, I'm getting many duplicate search results. I have determined that the number of duplicates directly corresponds to the number of photos I have in a gallery on a page with the name I search.

I expected that when I search "tiger" only 2 results would display - the 2 HTML instances that feature "tiger".

Instead:

Ex: search term "tiger"

Search results:

  • 10 total, the first 2 of which is legit HTML content and include a description
  • The next 8 are duplicates of "tiger", all without a description. I'm using the photo gallery module on the Tiger page, and it contains exactly 9 photos.

I'm experiencing this across the site, on 70+ pages, with varying numbers of duplicate results, all corresponding to the exact number of photos in each gallery.

Ideal solution - can I exclude the photo gallery module from search results?

Any help is appreciated. Thank you!

Kiersten

2/7/2017 2:18:50 PM
Gravatar
Total Posts 182
Community Expert

mojoPortal Hosting & Design @ i7MEDIA!

Re: Multiple Search Results because of Photo Gallery

Hi Kiersten,

This is a bit of a late response to this bug, mojoPortal was recently been acquired by i7MEDIA so we're going through the forums and finding bugs to fix. We've not been able to replicate this bug yet, but there is a way to disable a feature from being included in search results as you requested.

Disabling Feature Search Indexing by GUID
Any feature can be excluded from search indexing by including the feature's guid in the following key's value inside the user.config file.

<add key="SearchableFeatureGuidsToExclude" value="d572f6b4-d0ed-465d-ad60-60433893b401" /> 

The GUID used in this example is the GUID for the Image Gallery. Enter other feature GUIDS into the same key's value, in a comma separated list, to disable indexing on multiple features.

Note You will probably need to "touch" the web.config after making this change in the user.config (open it, type a space, and save). You will also need to rebuild your site's search index.

Finding a Feature's GUID
If you need to acquire the feature guid of any feature, follow these steps:

  1. Go to Administration > Advanced Tools > Feature Installation and Configuration.
  2. Find the feature you'd like to exclude from search results.
  3. Click the wrench next to that feature's name.
  4. Copy the GUID from the input labeled "Feature Guid:".

I hope this helps!
-Isaac