Want to protect your cyber security and still get fast solutions? Ask a secure question today.Go Premium

  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 163
  • Last Modified:

Display collection name in each search result

I have created a search that can go over three different collections. I would like to display in the search results the collection that the result is from.

e.g. the search runs over the internet, intranet, and news items. I would like to be able to display in the result like this:

1. Seniors Tourism (100%)
We will be looking to the seniors market in general, and Seniors Card in particular, to help us raise the profile and performance of Australian tourism product.
(Internet site)

2. Coordinator's Kit (100%)
These guidelines specify the way in which the corporate graphic can be used in conjunction within the website.
(intranet site)

3.  Seniors Invited to Fight Fraud (09-May-2001) (77%)
Toowoomba Seniors Invited to Fight Fraud
(news item)

Right now I have got it to work by looking at the resulting URL, e.g. for news items I look to see if the URL contains '/news/', but is there a better way to do this?

- Mal
1 Solution
You could put the collection name in the custom1 or custom2 field of the index. custom1 and custom2 are returned as query columns from a cfsearch.

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now