Re[2]: searches with dash, period etc. (back form politenes

This WebDNA talk-list message is from

2000


It keeps the original formatting.
numero = 25941
interpreted = N
texte = Oh, is that what this is all about. You are not understanding wbrk correctly. Note carefully that there is a space after each comma in the namelist. When you overrode the default wbrk characters with comma, WebCat correctly determined that Joe Jones is not the same as Joe Jones (from the database), and the same for the other case.You need to clean up your name list to only contain the names and commas; you cannot add space to the wbrk list since that will break on first name/last name as well. The characters in the wbrk list are all of the characters that are used as delimiters, and only those characters are stripped from the test string.This will work as advertised: [text]namelist=Joe Smith,Joe Jones,Joe Roberts[/text] [search db=nametest.db&wonamedatarq=[namelist]&nameword=ww&namewbrk=,]HTHJohn Peacock ____________________Reply Separator____________________ Subject: Re: searches with dash, period etc. (back form politeness) Author: (WebCatalog Talk) Date: 1/6/00 1:25 PMJohn, thanks for the response & acknowledgement. Ok here's my example that was posted to the list as well as sent to tech support:I have a value list such as: [text]namelist=Joe Smith, Joe Jones, Joe Roberts[/text]and a db with: Name ID Joe Smith 1 Joe Jones 2 Joe Roberts 3 Joe Brown 4My search is: [search db=nametest.db&wonamedatarq=[namelist]&nameword=ww&namewbrk=,] or [search db=nametest.db&wonamedatarq=[namelist]&nameword=ww&namewbrk=[url],[/url]]Which uses the wholeword modifier and specifies what the word delimiter is (,) so the effect should be that the term Joe Smith is treated in the search as a whole word, followed by Joe Jones & Joe Roberts, so that all records are returned except for Joe Brown's.This now only returns the first instance - Joe Smith. URLing the break character has no affect.Marty Schmid>Yes, I was inconsiderate with my post and I apologize. I certainly >appreciate Ken's help on this list. However, unless I'm not understanding >something that's been written, it works like I said. I've set up a test >page so you can see the difference the wbrk parameter makes. It does >replace the word break list. If any of you have code where it doesn't look >like this happens please post it. One thing that has made this appear not >to work is not URLizing the word brak characters (especially the space >character). Hit this page to see what I mean: > >http://search.smithmicro.com/wbrk.tpl > >John. > >--------------------------------- > John A. Hill > Smith Micro Software > Internet Solutions Division >eCommerce / Consulting / Hosting > http://www.smithmicro.com >(formerly Pacific Coast Software) > >------------------------------------------------------------- >Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. >To end your Mail problems go to . > >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 > ------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .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 Associated Messages, from the most recent to the oldest:

    
  1. Re[2]: searches with dash, period etc. (back form politenes (Marty Schmid 2000)
  2. Re[2]: searches with dash, period etc. (back form politenes (jpeacock@univpress.com 2000)
Oh, is that what this is all about. You are not understanding wbrk correctly. Note carefully that there is a space after each comma in the namelist. When you overrode the default wbrk characters with comma, WebCat correctly determined that Joe Jones is not the same as Joe Jones (from the database), and the same for the other case.You need to clean up your name list to only contain the names and commas; you cannot add space to the wbrk list since that will break on first name/last name as well. The characters in the wbrk list are all of the characters that are used as delimiters, and only those characters are stripped from the test string.This will work as advertised: [text]namelist=Joe Smith,Joe Jones,Joe Roberts[/text] [search db=nametest.db&wonamedatarq=[namelist]&nameword=ww&namewbrk=,]HTHJohn Peacock ____________________Reply Separator____________________ Subject: Re: searches with dash, period etc. (back form politeness) Author: (WebCatalog Talk) Date: 1/6/00 1:25 PMJohn, thanks for the response & acknowledgement. Ok here's my example that was posted to the list as well as sent to tech support:I have a value list such as: [text]namelist=Joe Smith, Joe Jones, Joe Roberts[/text]and a db with: Name ID Joe Smith 1 Joe Jones 2 Joe Roberts 3 Joe Brown 4My search is: [search db=nametest.db&wonamedatarq=[namelist]&nameword=ww&namewbrk=,] or [search db=nametest.db&wonamedatarq=[namelist]&nameword=ww&namewbrk=[url],[/url]]Which uses the wholeword modifier and specifies what the word delimiter is (,) so the effect should be that the term Joe Smith is treated in the search as a whole word, followed by Joe Jones & Joe Roberts, so that all records are returned except for Joe Brown's.This now only returns the first instance - Joe Smith. URLing the break character has no affect.Marty Schmid>Yes, I was inconsiderate with my post and I apologize. I certainly >appreciate Ken's help on this list. However, unless I'm not understanding >something that's been written, it works like I said. I've set up a test >page so you can see the difference the wbrk parameter makes. It does >replace the word break list. If any of you have code where it doesn't look >like this happens please post it. One thing that has made this appear not >to work is not URLizing the word brak characters (especially the space >character). Hit this page to see what I mean: > >http://search.smithmicro.com/wbrk.tpl > >John. > >--------------------------------- > John A. Hill > Smith Micro Software > Internet Solutions Division >eCommerce / Consulting / Hosting > http://www.smithmicro.com >(formerly Pacific Coast Software) > >------------------------------------------------------------- >Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. >To end your Mail problems go to . > >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 > ------------------------------------------------------------- Brought to you by CommuniGate Pro - The Buzz Word Compliant Messaging Server. To end your Mail problems go to .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 jpeacock@univpress.com

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:

Search all Fields in a db (1997) Cart Number sequence (1997) Re[2]: Using [Include] Context (1999) form crasehes server (1997) PROBLEM (1997) WebCat2 beta 11 - new prefs ... (1997) Trunk-gator (1997) [WebDNA] DB help (2011) Running _every_ page through WebCat ? (1997) Security Hole - NetCloak Update (1998) Credit Card Number checking (1997) creating a 60 fields database (1997) duplicate items in cart (1998) [writefile] (1997) Not really WebCat (1997) test (2003) SiteGuard Use Question (1997) Running _every_ page through WebCat-error.html (1997) WebDNA vs PHP (2003) Digest for 09-30-97 (1997)