Solved

Highlighting keywords in the verity search summary

Posted on 2003-11-06
2
278 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Portable, direct connect server access

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

Suggested Solutions

Title # Comments Views Activity
Google Crawl Errors Producing 404 Errors 4 88
Why is my Splunk Web URL not working? 2 99
Two wordpress questions 3 108
htaccess block all countries but the US 4 98
In our day to day coding, how many times have we come across a necessity to check whether a URL is a broken link or not? For those of you that answered countless and are using ColdFusion like myself, then this article is for you.  It will show yo…
Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

751 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