Re: Strange Search Results
This WebDNA talk-list message is from 2004
It keeps the original formatting.
numero = 56044
interpreted = N
texte = Justin Carroll wrote:> Why, when you type in "aslfkjsdlfj" or anything BESIDES a number, does it> return sku 1 and 3 but not 2? Thanks.> Because _any_ text (i.e. not a number) is equal to the number 0, and hence matches records 1 & 3. You will need to change your [search] context based on whether the [txtKeyword] field contains a number or not. You should probably be preprocessing the search term anyway to ensure that "search by date" is actually done with a date in the legal range (i.e. not 0).HTHJohn-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 301-429-5748-------------------------------------------------------------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:
Justin Carroll wrote:> Why, when you type in "aslfkjsdlfj" or anything BESIDES a number, does it> return sku 1 and 3 but not 2? Thanks.> Because _any_ text (i.e. not a number) is equal to the number 0, and hence matches records 1 & 3. You will need to change your [search] context based on whether the [txtKeyword] field contains a number or not. You should probably be preprocessing the search term anyway to ensure that "search by date" is actually done with a date in the legal range (i.e. not 0).HTHJohn-- John PeacockDirector of Information Research and TechnologyRowman & Littlefield Publishing Group4501 Forbes BoulevardSuite HLanham, MD 20706301-459-3366 x.5010fax 301-429-5748-------------------------------------------------------------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 Peacock
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:
Re:2nd WebCatalog2 Feature Request (1996)
Error handling for accountNum (1997)
[SHOWIF] PROBLEM (2000)
Templates in Memory (2000)
Summary layout (1997)
Configuring E-mail (1997)
WCS Newbie question (1997)
Zip Code Search (2000)
More than one db with the same namn (was: WC2f3) (1997)
Authorize.net and AIM (2003)
How to verify email address (1997)
[WebDNA] WebDNA Email Auth Functioning? (2014)
randomness (1997)
inetinfo.exe (1999)
Multiple prices (1997)
Help name our technology! I found it (1997)
any idea (2004)
Adding headers to email (1997)
A Trigger Question (2000)
Multiple fields on 1 input (1997)