Solved

Highlighting keywords in the verity search summary

Posted on 2003-11-06
2
273 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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

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…
Lease-to-own eliminates the expenditure of hardware replacement and allows you to pay off the server over time. Usually, this is much cheaper than leasing servers. Think of lease-to-own as credit without interest.
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

829 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