Re: Feature Creep - Wants More Search Stuff ...
On Tuesday 04 Mar 2008, Les Mizzell wrote: > >#Attorney_Name# >#right(bodyCOPY, 150)# > > Instead of the first 150 number of characters from the bodyCOPY field, > they'd like to see X number of characters on either side of the specific refind() should return you the offset of the match, so then use mid to return pos-50 to pos+50 characters. Optionally scan forwards and back to the next space char. -- Tom Chiverton Helping to authoritatively strategize visionary eyeballs on: http://thefalken.livejournal.com This email is sent for and on behalf of Halliwells LLP. Halliwells LLP is a limited liability partnership registered in England and Wales under registered number OC307980 whose registered office address is at Halliwells LLP, 3 Hardman Square, Spinningfields, Manchester, M3 3EB. A list of members is available for inspection at the registered office. Any reference to a partner in relation to Halliwells LLP means a member of Halliwells LLP. Regulated by The Solicitors Regulation Authority. CONFIDENTIALITY This email is intended only for the use of the addressee named above and may be confidential or legally privileged. If you are not the addressee you must not read it and must not use any information contained in nor copy it nor inform any person other than Halliwells LLP or the addressee of its existence or contents. If you have received this email in error please delete it and notify Halliwells LLP IT Department on 0870 365 2500. For more information about Halliwells LLP visit www.halliwells.com. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:300420 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Feature Creep - Wants More Search Stuff ...
If you want to take a look at Lucene, I believe they have a highlighter that you might be able to use if you want more accurate things. Russ > -Original Message- > From: Andy Matthews [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 04, 2008 10:35 AM > To: CF-Talk > Subject: RE: Feature Creep - Wants More Search Stuff ... > > Do they really want the entire sentence containing the term, or would they > be satisfied with just highlighting the search term itself? If they'd be > okay with that, the method takes care of that for you. > > -Original Message- > From: Les Mizzell [mailto:[EMAIL PROTECTED] > Sent: Tuesday, March 04, 2008 9:31 AM > To: CF-Talk > Subject: Re: Feature Creep - Wants More Search Stuff ... > > > There's a "highlight string" method on cflib. I've used it before. > > Found it - I was working on a method to do this by scanning through the > string to find the search term and then replacing it with the appropriate > CSS highlight style > > The harder part is - out of a huge SQL text field, containing almost > everything on a page, including some HTML tags, how do I get it to display > the one sentence down in paragraph 78 containing the search term? This is > the part I'm having trouble wrapping my head around. > > RESULTS 1 > . blah blah blah blah blah blah blah blah blah blah blah blah *TERM* > blah > blah blah blah blah ... > > RESULTS 2 > .blah blah blah blah *TERM* blah blah blah blah blah ... > > > > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:300415 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Feature Creep - Wants More Search Stuff ...
Andy Matthews wrote: > Do they really want the entire sentence containing the term, or would they > be satisfied with just highlighting the search term itself? If they'd be > okay with that, the method takes care of that for you. A list of results is returned - with the title/link of the practice/attorney (this is a law firm) that returned positive for the search. You get the first X number of characters off the page in question and a link to go to that page. From there you can click the link and go to the full page. Highlighting the search term there isn't that big of a deal, using the "highlight string" method. Something like (psuedo code) #Attorney_Name# #right(bodyCOPY, 150)# Instead of the first 150 number of characters from the bodyCOPY field, they'd like to see X number of characters on either side of the specific sentence from the bodyCOPY field that contains the search term. ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:300409 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Feature Creep - Wants More Search Stuff ...
Do they really want the entire sentence containing the term, or would they be satisfied with just highlighting the search term itself? If they'd be okay with that, the method takes care of that for you. -Original Message- From: Les Mizzell [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2008 9:31 AM To: CF-Talk Subject: Re: Feature Creep - Wants More Search Stuff ... > There's a "highlight string" method on cflib. I've used it before. Found it - I was working on a method to do this by scanning through the string to find the search term and then replacing it with the appropriate CSS highlight style The harder part is - out of a huge SQL text field, containing almost everything on a page, including some HTML tags, how do I get it to display the one sentence down in paragraph 78 containing the search term? This is the part I'm having trouble wrapping my head around. RESULTS 1 . blah blah blah blah blah blah blah blah blah blah blah blah *TERM* blah blah blah blah blah ... RESULTS 2 .blah blah blah blah *TERM* blah blah blah blah blah ... ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:300403 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Feature Creep - Wants More Search Stuff ...
> There's a "highlight string" method on cflib. I've used it before. Found it - I was working on a method to do this by scanning through the string to find the search term and then replacing it with the appropriate CSS highlight style The harder part is - out of a huge SQL text field, containing almost everything on a page, including some HTML tags, how do I get it to display the one sentence down in paragraph 78 containing the search term? This is the part I'm having trouble wrapping my head around. RESULTS 1 blah blah blah blah blah blah blah blah blah blah blah blah *TERM* blah blah blah blah blah ... RESULTS 2 blah blah blah blah *TERM* blah blah blah blah blah ... ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:300402 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Feature Creep - Wants More Search Stuff ...
Les... There's a "highlight string" method on cflib. I've used it before. -Original Message- From: Les Mizzell [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 04, 2008 8:27 AM To: CF-Talk Subject: Feature Creep - Wants More Search Stuff ... It's OK, when they add stuff outside the original site spec, they pay out the nose for it... Search feature on a site - mostly looks for keywords in the body copy from site pages, which is mostly contained in a database. Functionality is mostly a view or two in the database and then queries on the site side. Nothing too complex. Now they're asking - "hey, when we see the search results, can we see the specific sentence that contained the keyword and highlight it"? Can anybody point me in a direction to pull something like this off? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:300401 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Feature Creep - Wants More Search Stuff ...
If you were using verity it'd be easy - The contexthilightbegin and contexthilightend would do it for you. Hatton On Tue, Mar 4, 2008 at 9:29 AM, Les Mizzell <[EMAIL PROTECTED]> wrote: > > > Now they're asking - "hey, when we see the search results, can we see > > the specific sentence that contained the keyword and highlight it"? > > > CF7 - by the way > > > ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:300397 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Feature Creep - Wants More Search Stuff ...
> Now they're asking - "hey, when we see the search results, can we see > the specific sentence that contained the keyword and highlight it"? CF7 - by the way ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:300396 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Feature Creep - Wants More Search Stuff ...
It's OK, when they add stuff outside the original site spec, they pay out the nose for it... Search feature on a site - mostly looks for keywords in the body copy from site pages, which is mostly contained in a database. Functionality is mostly a view or two in the database and then queries on the site side. Nothing too complex. Now they're asking - "hey, when we see the search results, can we see the specific sentence that contained the keyword and highlight it"? Can anybody point me in a direction to pull something like this off? ~| Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to date Get the Free Trial http://ad.doubleclick.net/clk;160198600;22374440;w Archive: http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:300395 Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4