Re: Search group and ww

This WebDNA talk-list message is from

2003


It keeps the original formatting.
numero = 52559
interpreted = N
texte = OK. Here's the mea culpa part.... I've worked out what's happened. Turns out the search was working correctly. What's happened is that I have done a couple of GREPs to highlight the searched-for words. The grep highlighted the partial words, but WebDNA was actually behaving correctly and finding a whole word... Trying to be too clever has been my undoing. Thanks for all your input. 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: 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:

    
  1. Re: Search group and ww (FYI) ( Tim Robinson 2003)
  2. Re: Search group and ww (mea culpa pt 2) ( Tim Robinson 2003)
  3. Re: Search group and ww ( Tim Robinson 2003)
  4. Re: Search group and ww ( John Hill 2003)
  5. Re: Search group and ww ( "Andrew Simpson" 2003)
  6. Re: Search group and ww ( Tim Robinson 2003)
  7. Re: Search group and ww ( Donovan 2003)
  8. Re: Search group and ww ( John Hill 2003)
  9. Re: Search group and ww ( Tim Robinson 2003)
  10. Re: Search group and ww ( "Andrew Simpson" 2003)
  11. Re: Search group and ww ( Tim Robinson 2003)
  12. Re: Search group and ww ( Tim Robinson 2003)
  13. Re: Search group and ww ( "Andrew Simpson" 2003)
  14. Search group and ww ( Tim Robinson 2003)
OK. Here's the mea culpa part.... I've worked out what's happened. Turns out the search was working correctly. What's happened is that I have done a couple of GREPs to highlight the searched-for words. The grep highlighted the partial words, but WebDNA was actually behaving correctly and finding a whole word... Trying to be too clever has been my undoing. Thanks for all your input. 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: 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:

Faxing orders in place of email (1997) E-Mailer (WebCatb15acgiMac) (1997) How to append text after the sign & (1997) WebMerchant 1.6 and SHTML (1997) Nested vs conditional (1997) WebCatalog2 Feature Feedback (1996) no global [username] or [password] displayed ... (1997) Problems with [Search] param - Mac Plugin b15 (1997) Email Format (1998) multiple search commands (1997) can WC render sites out? (1997) WebCat2 - Getting to the browser's username/password data (1997) CommandSecurity? (1997) [WriteFile] problems (1997) Multiple fields on 1 input (1997) [ot] windowsXP - check this site... (2004) [HIDEIF] inside [FOUNDITEM] (1997) WebCommerce: Folder organization ? (1997) database files in secure folder (1997) [WebDNA] ListFiles question (2012)