Re: Search group and ww (FYI)
This WebDNA talk-list message is from 2003
It keeps the original formatting.
numero = 52561
interpreted = N
texte = For your information and edification, this is the code for taking aboldwords, and highlighting it (with a CSS class called 'highlight') usinggrep. Thanks to Raj (who is officially the GrepMaster).[GREP search=<[/]?b>&replace=&ignorecase=T][!][/!][GREP search=([^a-z0-9])&replace=\1&ignorecase=T][!][/!][GREP search=([^a-z0-9])
([^<]*)([^a-z0-9])&replace=\1
\2\3&ignorecase=T][!][/!][BoldWords words=[searchwords]][RemoveHTML][FIELD_CONTENT][/RemoveHTML][/BoldWords][!][/!][/GREP][/GREP][/GREP]Regards,Tim-- Tim RobinsonIDFK Web Developmentstim@idfk.com.au114a/40 Yeo StreetNeutral Bay 2089AustraliaPhone +612 9908 2134Fax +612 9908 4837> From: "Andrew Simpson" > Reply-To: (WebDNA Talk)> Date: Fri, 29 Aug 2003 11:50:48 +1200> To: (WebDNA Talk)> Subject: Re: Search group and ww> > yeah, that was my understanding... it shouldn't return "belt" if searching> for "be" as a whole word search... donovans example looked to work... not> sure what the FBRK=ww stuff was about.> > > ----- Original Message -----> From: "Tim Robinson" > To: "WebDNA Talk" > Sent: Friday, August 29, 2003 11:42 AM> Subject: Re: Search group and ww> > >> For example, if I search for 'be', it finds 'best', 'alphabetical', 'belt'>> and 'be'. Maybe I'm not think right, but I thought ww means it only finds> a>> whole word. So it should only find 'be'.>> >> Regards,>> Tim>> -- >> Tim Robinson>> IDFK Web Developments>> tim@idfk.com.au>> 114a/40 Yeo Street>> Neutral Bay 2089>> Australia>> Phone +612 9908 2134>> Fax +612 9908 4837>> >>> From: John Hill >>> Reply-To: (WebDNA Talk)>>> Date: Thu, 28 Aug 2003 07:12:35 -0700>>> To: (WebDNA Talk)>>> Subject: Re: Search group and ww>>> >>> What's an example of the search string and the field data in page_desc?>>> >>>> well thats just messed up then... must be time to open the fridge.>>>> >>>> Your using the group 1 and 2 thing cause you know you can't search the> same>>>> field twice right? just checking.>>>> >>>> >>>> >>>> ----- Original Message ----->>>> From: "Tim Robinson" >>>> To: "WebDNA Talk" >>>> Sent: Thursday, August 28, 2003 4:05 PM>>>> Subject: Re: Search group and ww>>>> >>>> >>>>> Actually, even when I remove the group info, the 'ww' doesn't work....>>>>> >>>>> [Search db= products.db[!]>>>>> [/!]&waPAGE_DESCdatarq=[searchwords][!]>>>>> [/!]&PAGE_DESCword=ww]>>>>> >>>>> Regards,>>>>> Tim>>>>> -- >>>>> Tim Robinson>>>>> IDFK Web Developments>>>>> tim@idfk.com.au>>>>> 114a/40 Yeo Street>>>>> Neutral Bay 2089>>>>> Australia>>>>> Phone +612 9908 2134>>>>> Fax +612 9908 4837>>>>> >>>>>> From: "Andrew Simpson" >>>>>> Reply-To: (WebDNA Talk)>>>>>> Date: Thu, 28 Aug 2003 15:35:01 +1200>>>>>> To: (WebDNA Talk)>>>>>> Subject: Re: Search group and ww>>>>>> >>>>>> the only thing i could think to change there is the WA to a WS...>>>> because>>>>>> the docs say that even if WA requires all words to be present in the>>>> search,>>>>>> they don't necessarily have to be present one after the other...> where>>>> as WS>>>>>> (substring search) requires the word/words to appear in the DB> exactly>>>> as>>>>>> typed in by the user...>>>>>> >>>>>> >>>>>> the difference between finding :>>>>>> >>>>>> search = "I like beer">>>>>> >>>>>> results>>>>>> >>>>>> WS: "I like beer">>>>>> vs>>>>>> WA: "I really don't like beer very much at all">>>>>> >>>>>> or at least, thats my understanding of it... although you would think>>>> the>>>>>> "WW" on the group would do the trick.>>>>>> >>>>>> >>>>>> ----- Original Message ----->>>>>> From: "Tim Robinson" >>>>>> To: "WebDNA Talk" >>>>>> Sent: Thursday, August 28, 2003 3:28 PM>>>>>> Subject: Search group and ww>>>>>> >>>>>> >>>>>>> Hi there,>>>>>>> >>>>>>> I would like group2 to only find whole words, but it is presently>>>> finding>>>>>>> partial words.... all tips appreciated.>>>>>>> >>>>>>> [Search db=products.db[!]>>>>>>> [/!]&GROUP1field=PAGE_DESC[!]>>>>>>> [/!]&GROUP2field=PAGE_DESC[!]>>>>>>> [/!]&wnGROUP1datarq=admin_section[!]>>>>>>> [/!]&waGROUP2datarq=[searchwords][!]>>>>>>> [/!]&GROUP2word=ww]>>>>>>> >>>>>>> >>>>>>> Regards,>>>>>>> Tim>>>>>>> -- >>>>>>> Tim Robinson>>>>>>> IDFK Web Developments>>>>>>> tim@idfk.com.au>>>>>>> 114a/40 Yeo Street>>>>>>> Neutral Bay 2089>>>>>>> Australia>>>>>>> Phone +612 9908 2134>>>>>>> Fax +612 9908 4837>>>>>>> >>>>>>> >>>>>>> ------------------------------------------------------------->>>>>>> This message is sent to you because you are subscribed to>>>>>>> the mailing list .>>>>>>> To unsubscribe, E-mail to: >>>>>>> To switch to the DIGEST mode, E-mail to>>>>>> >>>>>>> Web Archive of this list is at: http://webdna.smithmicro.com/>>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> ------------------------------------------------------------->>>>>> This message is sent to you because you are subscribed to>>>>>> the mailing list .>>>>>> To unsubscribe, E-mail to: >>>>>> To switch to the DIGEST mode, E-mail to>>>>>> >>>>>> Web Archive of this list is at: http://webdna.smithmicro.com/>>>>> >>>>> >>>>> ------------------------------------------------------------->>>>> This message is sent to you because you are subscribed to>>>>> the mailing list .>>>>> To unsubscribe, E-mail to: >>>>> To switch to the DIGEST mode, E-mail to>>>> >>>>> Web Archive of this list is at: http://webdna.smithmicro.com/>>>>> >>>> >>>> >>>> >>>> ------------------------------------------------------------->>>> This message is sent to you because you are subscribed to>>>> the mailing list .>>>> To unsubscribe, E-mail to: >>>> To switch to the DIGEST mode, E-mail to>>>> >>>> Web Archive of this list is at: http://webdna.smithmicro.com/>>> >>> -- >>> >>> --------------------------------->>> John A. Hill>>> Oak Hill Software>>> Website Development/Consulting>>> john@oakhillsoftware.com>>> >>> ------------------------------------------------------------->>> This message is sent to you because you are subscribed to>>> the mailing list .>>> To unsubscribe, E-mail to: >>> To switch to the DIGEST mode, E-mail to>>> >>> Web Archive of this list is at: http://webdna.smithmicro.com/>> >> >> ------------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list .>> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to> >> Web Archive of this list is at: http://webdna.smithmicro.com/>> > > > > -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to> > Web Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Associated Messages, from the most recent to the oldest:
|
- Re: Search group and ww (FYI) ( Tim Robinson 2003)
|
For your information and edification, this is the code for taking aboldwords, and highlighting it (with a CSS class called 'highlight') usinggrep. Thanks to Raj (who is officially the GrepMaster).[GREP search=<[/]?b>&replace=&ignorecase=T][!][/!][GREP search=([^a-z0-9])&replace=\1&ignorecase=T]
[!][/!][GREP search=([^a-z0-9])
([^<]*)([^a-z0-9])&replace=\1
\2\3&ignorecase=T][!][/!][BoldWords words=[searchwords]][removehtml][FIELD_CONTENT][/RemoveHTML][/BoldWords][!][/!][/GREP][/GREP][/GREP]Regards,Tim-- Tim RobinsonIDFK Web Developmentstim@idfk.com.au114a/40 Yeo StreetNeutral Bay 2089AustraliaPhone +612 9908 2134Fax +612 9908 4837> From: "Andrew Simpson" > Reply-To: (WebDNA Talk)> Date: Fri, 29 Aug 2003 11:50:48 +1200> To: (WebDNA Talk)> Subject: Re: Search group and ww> > yeah, that was my understanding... it shouldn't return "belt" if searching> for "be" as a whole word search... donovans example looked to work... not> sure what the FBRK=ww stuff was about.> > > ----- Original Message -----> From: "Tim Robinson" > To: "WebDNA Talk" > Sent: Friday, August 29, 2003 11:42 AM> Subject: Re: Search group and ww> > >> For example, if I search for 'be', it finds 'best', 'alphabetical', 'belt'>> and 'be'. Maybe I'm not think right, but I thought ww means it only finds> a>> whole word. So it should only find 'be'.>> >> Regards,>> Tim>> -- >> Tim Robinson>> IDFK Web Developments>> tim@idfk.com.au>> 114a/40 Yeo Street>> Neutral Bay 2089>> Australia>> Phone +612 9908 2134>> Fax +612 9908 4837>> >>> From: John Hill >>> Reply-To: (WebDNA Talk)>>> Date: Thu, 28 Aug 2003 07:12:35 -0700>>> To: (WebDNA Talk)>>> Subject: Re: Search group and ww>>> >>> What's an example of the search string and the field data in page_desc?>>> >>>> well thats just messed up then... must be time to open the fridge.>>>> >>>> Your using the group 1 and 2 thing cause you know you can't search the> same>>>> field twice right? just checking.>>>> >>>> >>>> >>>> ----- Original Message ----->>>> From: "Tim Robinson" >>>> To: "WebDNA Talk" >>>> Sent: Thursday, August 28, 2003 4:05 PM>>>> Subject: Re: Search group and ww>>>> >>>> >>>>> Actually, even when I remove the group info, the 'ww' doesn't work....>>>>> >>>>> [Search db= products.db[!]>>>>> [/!]&waPAGE_DESCdatarq=[searchwords][!]>>>>> [/!]&PAGE_DESCword=ww]>>>>> >>>>> Regards,>>>>> Tim>>>>> -- >>>>> Tim Robinson>>>>> IDFK Web Developments>>>>> tim@idfk.com.au>>>>> 114a/40 Yeo Street>>>>> Neutral Bay 2089>>>>> Australia>>>>> Phone +612 9908 2134>>>>> Fax +612 9908 4837>>>>> >>>>>> From: "Andrew Simpson" >>>>>> Reply-To: (WebDNA Talk)>>>>>> Date: Thu, 28 Aug 2003 15:35:01 +1200>>>>>> To: (WebDNA Talk)>>>>>> Subject: Re: Search group and ww>>>>>> >>>>>> the only thing i could think to change there is the WA to a WS...>>>> because>>>>>> the docs say that even if WA requires all words to be present in the>>>> search,>>>>>> they don't necessarily have to be present one after the other...> where>>>> as WS>>>>>> (substring search) requires the word/words to appear in the DB> exactly>>>> as>>>>>> typed in by the user...>>>>>> >>>>>> >>>>>> the difference between finding :>>>>>> >>>>>> search = "I like beer">>>>>> >>>>>> results>>>>>> >>>>>> WS: "I like beer">>>>>> vs>>>>>> WA: "I really don't like beer very much at all">>>>>> >>>>>> or at least, thats my understanding of it... although you would think>>>> the>>>>>> "WW" on the group would do the trick.>>>>>> >>>>>> >>>>>> ----- Original Message ----->>>>>> From: "Tim Robinson" >>>>>> To: "WebDNA Talk" >>>>>> Sent: Thursday, August 28, 2003 3:28 PM>>>>>> Subject: Search group and ww>>>>>> >>>>>> >>>>>>> Hi there,>>>>>>> >>>>>>> I would like group2 to only find whole words, but it is presently>>>> finding>>>>>>> partial words.... all tips appreciated.>>>>>>> >>>>>>> [Search db=products.db[!]>>>>>>> [/!]&GROUP1field=PAGE_DESC[!]>>>>>>> [/!]&GROUP2field=PAGE_DESC[!]>>>>>>> [/!]&wnGROUP1datarq=admin_section[!]>>>>>>> [/!]&waGROUP2datarq=[searchwords][!]>>>>>>> [/!]&GROUP2word=ww]>>>>>>> >>>>>>> >>>>>>> Regards,>>>>>>> Tim>>>>>>> -- >>>>>>> Tim Robinson>>>>>>> IDFK Web Developments>>>>>>> tim@idfk.com.au>>>>>>> 114a/40 Yeo Street>>>>>>> Neutral Bay 2089>>>>>>> Australia>>>>>>> Phone +612 9908 2134>>>>>>> Fax +612 9908 4837>>>>>>> >>>>>>> >>>>>>> ------------------------------------------------------------->>>>>>> This message is sent to you because you are subscribed to>>>>>>> the mailing list .>>>>>>> To unsubscribe, E-mail to: >>>>>>> To switch to the DIGEST mode, E-mail to>>>>>> >>>>>>> Web Archive of this list is at: http://webdna.smithmicro.com/>>>>>>> >>>>>> >>>>>> >>>>>> >>>>>> ------------------------------------------------------------->>>>>> This message is sent to you because you are subscribed to>>>>>> the mailing list .>>>>>> To unsubscribe, E-mail to: >>>>>> To switch to the DIGEST mode, E-mail to>>>>>> >>>>>> Web Archive of this list is at: http://webdna.smithmicro.com/>>>>> >>>>> >>>>> ------------------------------------------------------------->>>>> This message is sent to you because you are subscribed to>>>>> the mailing list .>>>>> To unsubscribe, E-mail to: >>>>> To switch to the DIGEST mode, E-mail to>>>> >>>>> Web Archive of this list is at: http://webdna.smithmicro.com/>>>>> >>>> >>>> >>>> >>>> ------------------------------------------------------------->>>> This message is sent to you because you are subscribed to>>>> the mailing list .>>>> To unsubscribe, E-mail to: >>>> To switch to the DIGEST mode, E-mail to>>>> >>>> Web Archive of this list is at: http://webdna.smithmicro.com/>>> >>> -- >>> >>> --------------------------------->>> John A. Hill>>> Oak Hill Software>>> Website Development/Consulting>>> john@oakhillsoftware.com>>> >>> ------------------------------------------------------------->>> This message is sent to you because you are subscribed to>>> the mailing list .>>> To unsubscribe, E-mail to: >>> To switch to the DIGEST mode, E-mail to>>> >>> Web Archive of this list is at: http://webdna.smithmicro.com/>> >> >> ------------------------------------------------------------->> This message is sent to you because you are subscribed to>> the mailing list .>> To unsubscribe, E-mail to: >> To switch to the DIGEST mode, E-mail to> >> Web Archive of this list is at: http://webdna.smithmicro.com/>> > > > > -------------------------------------------------------------> This message is sent to you because you are subscribed to> the mailing list .> To unsubscribe, E-mail to: > To switch to the DIGEST mode, E-mail to> > Web Archive of this list is at: http://webdna.smithmicro.com/-------------------------------------------------------------This message is sent to you because you are subscribed to the mailing list .To unsubscribe, E-mail to: To switch to the DIGEST mode, E-mail to Web Archive of this list is at: http://webdna.smithmicro.com/
Tim Robinson
DOWNLOAD WEBDNA NOW!
Top Articles:
Talk List
The WebDNA community talk-list is the best place to get some help: several hundred extremely proficient programmers with an excellent knowledge of WebDNA and an excellent spirit will deliver all the tips and tricks you can imagine...
Related Readings:
PhotoMill -> PhotoMaster (1997)
ListFiles (1998)
Trouble with formula.db (1997)
numfound=0 for a search after going into the SSL (2003)
Sendmail and SMTP AUTH (2005)
[WebDNA] OSX Lion (2012)
RE: ASP and Web DNA (1998)
http upload (2001)
multiple search commands (1997)
Most Efficiant Way to do restricted Areas (1997)
RE: Re:Signal Raised (1997)
AppleScript: Tell application:app location? (1998)
Frames and WebCat (1997)
[OT] DOD (2002)
Ranking customers (2003)
More Shopping Cart Problems (2000)
Shipcost Prob solved, new one arises (1998)
I'm new be kind (1997)
Two submit buttons ? (1997)
lunch20.com (2006)