Solved

Highlighting keywords in the verity search summary

Posted on 2003-11-06
2
275 Views
Last Modified: 2013-12-24
i was wondering if there is an easy way of highlighting a keyword in the verity search summary.

At the moment i have a simple text box at the top of my page where the user enters their search
criteria.

When they hit the search button it simply searches through a collection of cvs and displays a summary.

All i want to do is highlight the words in the summary that match the users search criteria.

Is there an easy way of doing this??

thanks
0
Comment
Question by:jturkington
2 Comments
 
LVL 2

Accepted Solution

by:
jonnygo55 earned 500 total points
ID: 9695474
is the summary in a single variable...and the search is a single word...if so you could do something like

<cfset highlightedKeyword = '<font color="yellow">' & keyword & '</font>'>
<cfset newSummary = replace(oldSummary,keyword,highlightedKeyword,'ALL')>

if it is a more complex search criteria you would have to modify it...
0
 
LVL 10

Expert Comment

by:substand
ID: 9699359
let know if you still need help
0

Featured Post

Save the day with this special offer from ATEN!

Save 30% on the CV211 using promo code EXPERTS30 now through April 30th. The ATEN CV211 connects a laptop directly to any server allowing you instant access to perform data maintenance and local operations, for quick troubleshooting, updating, service and repair.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A web service (http://en.wikipedia.org/wiki/Web_service) is a software related technology that facilitates machine-to-machine interaction over a network. This article helps beginners in creating and consuming a web service using the ColdFusion Ma…
When it comes to showing a 404 error page to your visitors, you do not want that generic page to show, and you especially do not want your hosting provider’s ad error page to show either. In this article, I will show you how to enable the custom 40…

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question